summaryrefslogtreecommitdiff
path: root/disk-utils/fdformat.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2006-12-07 00:25:33 +0100
committerKarel Zak <kzak@redhat.com>2006-12-07 00:25:33 +0100
commit726f69e29ca9d4842f3acb20fffd2466fda62c09 (patch)
treeabbc1b6e9bfb0dfe32e81a83648e261ccb2d5a5f /disk-utils/fdformat.c
parent6dbe3af945a63f025561abb83275cee9ff06c57b (diff)
downloadutil-linux-old-726f69e29ca9d4842f3acb20fffd2466fda62c09.tar.gz
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 7fb78af6..8b08535a 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);