[TinyLogin] Tinylogin passwd doesn't like symlinks

Denis Vlasenko vda at port.imtp.ilyichevsk.odessa.ua
Tue May 11 15:39:47 MDT 2004


On Tuesday 11 May 2004 10:08, Carl G Lewis wrote:
> Hi,
>
> In the embedded system I am working on, the passwd and group files are
> stored on a JFFS2 filesystem which is mounted under /mnt. The root fs
> (which includes /etc) is a ramdisk. During the boot process I create
> symlinks from /etc/ to the two files on the flash filesystem.
>
> This works to some extent, except when using passwd. The problem is the use
> of rename(2) in update_passwd(). Basically when you try to rename the
> symlink, it is overwritten and you endup with an ordinary file on the
> ramdisk.

passwd is too broken. Don't try to fix it, folks will complain about
compat. Use separate utility. Like attached one.
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changepassword.c
Type: text/x-csrc
Size: 6653 bytes
Desc: not available
Url : http://busybox.net/lists/tinylogin/attachments/20040512/588c0181/changepassword.c


More information about the tinylogin mailing list