[sane-devel] [PATCH] Invoke setgid before setuid

2008-07-28 Thread Nick Andrew
Invoke setgid before setuid When called with the -a user parameter, saned calls first setuid and then setgid, but the second call fails because uid is no longer root. So call setgid first, and check the return code from the two calls. If you can't set your gid or uid, that's a fatal error.

[sane-devel] [PATCH] Invoke setgid before setuid

2008-07-28 Thread Julien BLACHE
Nick Andrew nick at nick-andrew.net wrote: Hi, When called with the -a user parameter, saned calls first setuid and then setgid, but the second call fails because uid is no longer root. Applied. JB. -- Julien BLACHE http://www.jblache.org jb at