diff options
author | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:33 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:33 +0100 |
commit | 726f69e29ca9d4842f3acb20fffd2466fda62c09 (patch) | |
tree | abbc1b6e9bfb0dfe32e81a83648e261ccb2d5a5f /disk-utils/fdformat.c | |
parent | 6dbe3af945a63f025561abb83275cee9ff06c57b (diff) | |
download | util-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.c | 2 |
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); |