Hi!

I think I have found a bug in UML. Inside my guest Linux, I get

# ls -l /etc/passwd
-rw-r--r--  18 root root 801 Oct 21 13:04 /etc/passwd
[EMAIL PROTECTED]:/dev# ls -l /etc/passwd
-rw-r--r--  19 root root 801 Oct 21 13:04 /etc/passwd
[EMAIL PROTECTED]:/dev# ls -l /etc/passwd
-rw-r--r--  20 root root 801 Oct 21 13:04 /etc/passwd
[EMAIL PROTECTED]:/dev# ls -l /etc/passwd
-rw-r--r--  21 root root 801 Oct 21 13:04 /etc/passwd
[EMAIL PROTECTED]:/dev# ls -l /etc/passwd
-rw-r--r--  22 root root 801 Oct 21 13:04 /etc/passwd
[EMAIL PROTECTED]:/dev# ls -l /etc/passwd
-rw-r--r--  23 root root 801 Oct 21 13:04 /etc/passwd

This is wrong, because the link count of /etc/passwd is incremented each time ls(1) is run. This also breaks the `useradd' and `adduser' programs, because they use a file locking method which involves checking the link count.

I use this version of UML:

# dpkg -l user-mode-linux
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  user-mode-linu 2.4.26-3um-1   User-mode Linux (kernel)

Best regards,

Péter

--- (vvv use GNU); [EMAIL PROTECTED]; http://www.inf.bme.hu/~pts
[/dlflg/=u]dZ[lflglblp*lqlg*+lpla*lqlf*+sfsgsbdsalblex]dscZ[lb%O]sdzzKsa
[nlaldx*lflg%O*sfdsalblex]dsuZ[.]zsqsssgsbnsfspselsn[lcxsslqdlp+spz+sqdx]dx

Reply via email to