Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sbin/mount_tmpfs



Module Name:    src
Committed By:   jmmv
Date:           Sun Mar 26 16:15:15 UTC 2006

Modified Files:
        src/sbin/mount_tmpfs: mount_tmpfs.c

Log Message:
There is no need to check for the resulting value of a strto*l call after
ERANGE has been raised.  Just remove the extra checks, which were incorrect
anyway in almost all calls because they did not match their corresponding
strto*l function.

This caused mount_tmpfs to not catch some error cases in, e.g., i386, as
strtoll was returning LLONG_MAX instead of LONG_MAX, which are different
in this platform (but not on 64-bit ones).

Problem found by martin@; thanks!


To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 src/sbin/mount_tmpfs/mount_tmpfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index