Bug 5348 - Sideeffect of fixing Bug 4874
Summary: Sideeffect of fixing Bug 4874
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-09 17:19 UTC by m.koenigshaus
Modified: 2012-07-18 15:33 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m.koenigshaus 2012-07-09 17:19:45 UTC
Changing the xchdir to xchroot in tftpd.c has an ugly sideeffect on my uclib - based ARM - Board: After xchroot the Option -u <user> (e.g. -u root) is not useable, I get "tftpd: unknown user root". I thing, with getpwnam - call uclib looks for /etc/passwd in the chrooted directory. Reverting the patch solves the problem.
Comment 1 Denys Vlasenko 2012-07-18 15:33:26 UTC
Fixed in git:

commit dbed6c4b46f3c8dc74d50e4cf35b1cb8b8c4ff2d
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Wed Jul 18 17:32:32 2012 +0200

    tftpd: fix -u USER to work with chroot