Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sbin/newfs_msdos pull up rev 1.4 from trunk (cgd)



details:   https://anonhg.NetBSD.org/src/rev/d2bdf857449a
branches:  netbsd-1-4
changeset: 469234:d2bdf857449a
user:      cgd <cgd%NetBSD.org@localhost>
date:      Fri Aug 20 04:56:49 1999 +0000

description:
pull up rev 1.4 from trunk (cgd)

diffstat:

 sbin/newfs_msdos/newfs_msdos.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 3720af9f3199 -r d2bdf857449a sbin/newfs_msdos/newfs_msdos.c
--- a/sbin/newfs_msdos/newfs_msdos.c    Fri Aug 20 04:47:28 1999 +0000
+++ b/sbin/newfs_msdos/newfs_msdos.c    Fri Aug 20 04:56:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newfs_msdos.c,v 1.3 1997/10/17 17:47:41 drochner Exp $ */
+/*     $NetBSD: newfs_msdos.c,v 1.3.4.1 1999/08/20 04:56:49 cgd Exp $  */
 
 /*
  * Copyright (c) 1997 Christos Zoulas
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: newfs_msdos.c,v 1.3 1997/10/17 17:47:41 drochner Exp $");
+__RCSID("$NetBSD: newfs_msdos.c,v 1.3.4.1 1999/08/20 04:56:49 cgd Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -153,6 +153,7 @@
                    (offs = lseek(fd, (off_t) 0, SEEK_CUR)) == -1)
                        /* Hmm, hmm.  Hard luck. */
                        return 0;
+               (void) lseek(fd, (off_t) 0, SEEK_SET);
                return (size_t) (offs / 1024);
        } else if (S_ISCHR(sb.st_mode) || S_ISBLK(sb.st_mode)) {
                char            b[512];



Home | Main Index | Thread Index | Old Index