summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorErik Andersen2000-05-19 05:35:19 +0000
committerErik Andersen2000-05-19 05:35:19 +0000
commit330fd2b5767110f29544131d4c72c77e0506b6df (patch)
treeaa360774a903d3ebb0b2b5f3031c2e359f9c3afb /utility.c
parentd356c6e9d1bc091c64200ecc401aa9b6ffb53151 (diff)
downloadbusybox-330fd2b5767110f29544131d4c72c77e0506b6df.zip
busybox-330fd2b5767110f29544131d4c72c77e0506b6df.tar.gz
More libc portability updates, add in the website (which has not been
archived previously). Wrote 'which' during the meeting today. -Erik
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/utility.c b/utility.c
index 234955e..07e540e 100644
--- a/utility.c
+++ b/utility.c
@@ -801,12 +801,13 @@ unsigned long my_getid(const char *filename, char *name, unsigned long id, unsig
{
FILE *file;
char *rname, *start, *end, buf[128];
- id_t rid;
+ unsigned long rid;
unsigned long rgid = 0;
file = fopen(filename, "r");
if (file == NULL) {
- perror(filename);
+ /* Do not complain. It is ok for /etc/password and
+ * friends to be missing... */
return (-1);
}