diff srogue/main.c @ 174:1863409c44cf

srogue: improve privilege handling. Setgid privileges are now dropped when not required. restore() is now less complex.
author John "Elwin" Edwards
date Sat, 01 Aug 2015 16:23:24 -0400
parents 78fa1d0e5d25
children db1c9a21a7c3
line wrap: on
line diff
--- a/srogue/main.c	Sat Aug 01 15:12:11 2015 -0400
+++ b/srogue/main.c	Sat Aug 01 16:23:24 2015 -0400
@@ -121,7 +121,7 @@
 #endif
 
 	if (!use_savedir)
-		md_droppriv();
+		md_normaluser();
 
 	/* get home and options from environment */