← Commit list

48091fb3d

Eric Andersen
Eric Andersen
1999-12-09
FAILED Duration: 4s

Subject

* my_getid was leaking file descriptors, causing 'ls -l' on long directories to fail -Erik

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

Changelog+2 -0
@@ -9,6 +9,8 @@
integration with the about-to-be-released tinylogin.)
* kill now behaves itself properly, added 'kill -l' to list signals
* 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
utility.c+4 -1
@@ -645,11 +645,14 @@ my_getid(const char *filename, char *name, uid_t id)
continue;
if (name) {
- if (0 == strcmp(rname, name))
+ if (0 == strcmp(rname, name)) {
+ fclose( file);
return( rid);
+ }
}
if ( id != -1 && id == rid ) {
strncpy(name, rname, 8);
+ fclose( file);
return( TRUE);
}
}