comparison 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
comparison
equal deleted inserted replaced
173:78fa1d0e5d25 174:1863409c44cf
119 } 119 }
120 } 120 }
121 #endif 121 #endif
122 122
123 if (!use_savedir) 123 if (!use_savedir)
124 md_droppriv(); 124 md_normaluser();
125 125
126 /* get home and options from environment */ 126 /* get home and options from environment */
127 127
128 if ((env = getenv("HOME")) != NULL) 128 if ((env = getenv("HOME")) != NULL)
129 strcpy(home, env); 129 strcpy(home, env);