summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-10-18 17:23:28 +0000
committerMiles Bader <miles@gnu.org>1995-10-18 17:23:28 +0000
commitc1db5c4ef120d99ea0f9af42e2b35e85e4bb5f24 (patch)
treeaa1d714ae6343f14bd303183c8990c2249a9f7e0 /ufs-fsck
parent347f3927d25cb8b4731a25b989884741925d4b5f (diff)
(setup): Set DEVICE_NAME.
(lfname, lfmode): Variables moved to main.c.
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/setup.c6
1 files changed, 4 insertions, 2 deletions
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);