Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Nov 1999 02:33:08 +0200
From:      Maxim Sobolev <sobomax@altavista.net>
To:        current@freebsd.org
Subject:   rm error code on FAT
Message-ID:  <38261A44.F0451032@altavista.net>

next in thread | raw e-mail | index | archive | help
Does anybody can explain why two absolutely identical attempts to remove
unexistent files on UFS and FAT32 yields different error codes ("No such
file or directory" and "Invalid argument" respectively)? This breaks "rm
-f" behaviour, because instead of expected "0", "rm -f" on FAT returns
error code instead.

bash-2.03# mount
/dev/ad0s2a on / (ufs, local, noatime, soft-updates, writes: sync 231
async 5542)
procfs on /proc (procfs, local)
/dev/ad0s1 on /mnt (msdos, local)
bash-2.03# rm /tmp/*.no_such_files
rm: /tmp/*.no_such_files: No such file or directory
bash-2.03# rm /mnt/*.no_such_files
rm: /mnt/*.no_such_files: Invalid argument


-Maxim



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38261A44.F0451032>