summaryrefslogtreecommitdiffstats
path: root/disk-utils/fdformat.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:33 +0100
committerKarel Zak2006-12-07 00:25:33 +0100
commit726f69e29ca9d4842f3acb20fffd2466fda62c09 (patch)
treeabbc1b6e9bfb0dfe32e81a83648e261ccb2d5a5f /disk-utils/fdformat.c
parentImported from util-linux-2.2 tarball. (diff)
downloadkernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.gz
kernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.xz
kernel-qcow2-util-linux-726f69e29ca9d4842f3acb20fffd2466fda62c09.zip
Imported from util-linux-2.5 tarball.
Diffstat (limited to 'disk-utils/fdformat.c')
-rw-r--r--disk-utils/fdformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/fdformat.c b/disk-utils/fdformat.c
index 7fb78af6a..8b08535a6 100644
--- a/disk-utils/fdformat.c
+++ b/disk-utils/fdformat.c
@@ -93,7 +93,7 @@ int main(int argc,char **argv)
argv++;
}
if (argc != 2) usage(name);
- if (lstat(argv[1],&st) < 0) PERROR(argv[1]);
+ if (stat(argv[1],&st) < 0) PERROR(argv[1]);
if (!S_ISBLK(st.st_mode) || MAJOR(st.st_rdev) != FLOPPY_MAJOR) {
fprintf(stderr,"%s: not a floppy device\n",argv[1]);
exit(1);