From 70e1da623b916fc183cab1f4c3f10809bdc789c4 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 17 Sep 1996 19:31:18 +0000 Subject: [PATCH] realpath fix, do not dump; pr#2765, david@mono.org --- sbin/fsck_msdos/dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/fsck_msdos/dir.c b/sbin/fsck_msdos/dir.c index 44010daf91d..916e6fb0737 100644 --- a/sbin/fsck_msdos/dir.c +++ b/sbin/fsck_msdos/dir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.3 1996/06/23 14:30:42 deraadt Exp $ */ +/* $OpenBSD: dir.c,v 1.4 1996/09/17 19:31:18 deraadt Exp $ */ /* $NetBSD: dir.c,v 1.1.4.1 1996/05/31 18:41:38 jtc Exp $ */ /* @@ -37,7 +37,7 @@ #ifndef lint -static char rcsid[] = "$OpenBSD: dir.c,v 1.3 1996/06/23 14:30:42 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: dir.c,v 1.4 1996/09/17 19:31:18 deraadt Exp $"; #endif /* not lint */ #include @@ -168,7 +168,7 @@ fullpath(dir) memcpy(cp, np, nl); *--cp = '/'; } while (dir = dir->parent); - if (dir->parent) + if (dir) *--cp = '?'; return cp; } -- 2.20.1