Michał Górny avatar Michał Górny committed 737bdb6

Drop saveuid as it is always enabled now.

Comments (0)

Files changed (3)

SmartLiveRebuild/cli.py

 				out.err("Running as the portage user, --quickpkg probably won't work")
 
 	try:
-		packages = SmartLiveRebuild(opts, saveuid = not opts.pretend)
+		packages = SmartLiveRebuild(opts)
 	except SLRFailure:
 		return 1
 

SmartLiveRebuild/core.py

 		self._bashproc.communicate()
 		self._tmpf.close()
 
-def SmartLiveRebuild(opts, db = None, portdb = None, saveuid = False, settings = None):
+def SmartLiveRebuild(opts, db = None, portdb = None, settings = None):
 	if db is None or portdb is None or settings is None:
 		trees = create_trees(
 				config_root = os.environ.get('PORTAGE_CONFIGROOT'),
 			portdb = tree['porttree'].dbapi
 		if settings is None:
 			settings = db.settings
-		saveuid = True
 
 	if not opts.color:
 		out.monochromize()
 			if not userok:
 				if os.getuid() == portage_uid:
 					userok = True
-			elif not saveuid and not opts.quickpkg:
-				out.s1('Dropping superuser privileges ...')
-				os.setuid(portage_uid)
 			else:
 				out.s1('Forking to drop superuser privileges ...')
 				commpipe = os.pipe()

SmartLiveRebuild/sets.py

 			if packages is None:
 				packages = SmartLiveRebuild(self._options,
 						db = self._dbapi, portdb = self._portdb,
-						saveuid = True, settings = self._settings)
+						settings = self._settings)
 		except SLRFailure:
 			pass
 		else:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.