mirror of
https://github.com/sheumann/hush.git
synced 2025-08-15 19:27:40 +00:00
* my_getid was leaking file descriptors, causing 'ls -l' on long
directories to fail -Erik
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
integration with the about-to-be-released tinylogin.)
|
integration with the about-to-be-released tinylogin.)
|
||||||
* kill now behaves itself properly, added 'kill -l' to list signals
|
* kill now behaves itself properly, added 'kill -l' to list signals
|
||||||
* Began to add tail, butit doesn't work yet.
|
* Began to add tail, butit doesn't work yet.
|
||||||
|
* my_getid was leaking file descriptors, causing 'ls -l' on long
|
||||||
|
directories to fail
|
||||||
|
|
||||||
-Erik Andrsen
|
-Erik Andrsen
|
||||||
|
|
||||||
|
@@ -645,11 +645,14 @@ my_getid(const char *filename, char *name, uid_t id)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (name) {
|
if (name) {
|
||||||
if (0 == strcmp(rname, name))
|
if (0 == strcmp(rname, name)) {
|
||||||
|
fclose( file);
|
||||||
return( rid);
|
return( rid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ( id != -1 && id == rid ) {
|
if ( id != -1 && id == rid ) {
|
||||||
strncpy(name, rname, 8);
|
strncpy(name, rname, 8);
|
||||||
|
fclose( file);
|
||||||
return( TRUE);
|
return( TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user