aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-03 19:05:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-03 19:05:55 +0000
commitd7a805efafd83203e72c334089c3f88204231ac7 (patch)
treed69521a26d050432f89cf5713aa1516f655b136f /networking
parentac1c96f6737799d1d7f85515237df80e9da71346 (diff)
downloadbusybox-w32-d7a805efafd83203e72c334089c3f88204231ac7.tar.gz
busybox-w32-d7a805efafd83203e72c334089c3f88204231ac7.tar.bz2
busybox-w32-d7a805efafd83203e72c334089c3f88204231ac7.zip
libbb: introduce and use xgetpwnam. ~ -150 bytes.
Diffstat (limited to 'networking')
-rw-r--r--networking/tftp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/tftp.c b/networking/tftp.c
index 1f706852a..799dd9903 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -223,9 +223,7 @@ static int tftp_protocol(
223 } 223 }
224 224
225 if (user_opt) { 225 if (user_opt) {
226 struct passwd *pw = getpwnam(user_opt); 226 struct passwd *pw = xgetpwnam(user_opt);
227 if (!pw)
228 bb_error_msg_and_die("unknown user %s", user_opt);
229 change_identity(pw); /* initgroups, setgid, setuid */ 227 change_identity(pw); /* initgroups, setgid, setuid */
230 } 228 }
231 } 229 }