setuid-wrapper: Disallow empty `.real' files.
svn path=/nixos/trunk/; revision=11122
This commit is contained in:
parent
6c8bae53c1
commit
5229399617
|
@ -63,6 +63,7 @@ int main(int argc, char * * argv)
|
|||
len = read(fdSelf, real, PATH_MAX);
|
||||
assert (len != -1);
|
||||
assert (len < sizeof (real));
|
||||
assert (len > 0);
|
||||
real[len] = 0;
|
||||
|
||||
close(fdSelf);
|
||||
|
|
Loading…
Reference in New Issue