From c1db5c4ef120d99ea0f9af42e2b35e85e4bb5f24 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 18 Oct 1995 17:23:28 +0000 Subject: (setup): Set DEVICE_NAME. (lfname, lfmode): Variables moved to main.c. --- ufs-fsck/setup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ufs-fsck') diff --git a/ufs-fsck/setup.c b/ufs-fsck/setup.c index f3faf07d..9d5d3d24 100644 --- a/ufs-fsck/setup.c +++ b/ufs-fsck/setup.c @@ -25,8 +25,8 @@ static char sblockbuf[SBSIZE]; struct fs *sblock = (struct fs *)sblockbuf; -char lfname[] = "lost+found"; -mode_t lfmode = IFDIR | 0755; +/* A string identifying what we're trying to check. */ +char *device_name = 0; /* Get ready to run on device with pathname DEV. */ int @@ -36,6 +36,8 @@ setup (char *dev) int changedsb; size_t bmapsize; + device_name = dev; + if (stat (dev, &st) == -1) { perror (dev); -- cgit v1.2.3