diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-05-19 05:35:19 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-05-19 05:35:19 +0000 |
commit | 330fd2b5767110f29544131d4c72c77e0506b6df (patch) | |
tree | aa360774a903d3ebb0b2b5f3031c2e359f9c3afb /utility.c | |
parent | d356c6e9d1bc091c64200ecc401aa9b6ffb53151 (diff) | |
download | busybox-w32-330fd2b5767110f29544131d4c72c77e0506b6df.tar.gz busybox-w32-330fd2b5767110f29544131d4c72c77e0506b6df.tar.bz2 busybox-w32-330fd2b5767110f29544131d4c72c77e0506b6df.zip |
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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -801,12 +801,13 @@ unsigned long my_getid(const char *filename, char *name, unsigned long id, unsig | |||
801 | { | 801 | { |
802 | FILE *file; | 802 | FILE *file; |
803 | char *rname, *start, *end, buf[128]; | 803 | char *rname, *start, *end, buf[128]; |
804 | id_t rid; | 804 | unsigned long rid; |
805 | unsigned long rgid = 0; | 805 | unsigned long rgid = 0; |
806 | 806 | ||
807 | file = fopen(filename, "r"); | 807 | file = fopen(filename, "r"); |
808 | if (file == NULL) { | 808 | if (file == NULL) { |
809 | perror(filename); | 809 | /* Do not complain. It is ok for /etc/password and |
810 | * friends to be missing... */ | ||
810 | return (-1); | 811 | return (-1); |
811 | } | 812 | } |
812 | 813 | ||