Module Name:    src
Committed By:   christos
Date:           Wed Dec  2 12:20:52 UTC 2015

Modified Files:
        src/sbin/gpt: gpt.c

Log Message:
Always set NOSYNC if regular file, even if we got the size from the command
line.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sbin/gpt/gpt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/gpt/gpt.c
diff -u src/sbin/gpt/gpt.c:1.55 src/sbin/gpt/gpt.c:1.56
--- src/sbin/gpt/gpt.c:1.55	Wed Dec  2 05:19:58 2015
+++ src/sbin/gpt/gpt.c	Wed Dec  2 07:20:52 2015
@@ -35,7 +35,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.55 2015/12/02 10:19:58 jnemeth Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.56 2015/12/02 12:20:52 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -525,8 +525,8 @@ gpt_open(const char *dev, int flags, int
 				goto close;
 			}
 			gpt->mediasz = gpt->sb.st_size;
-			gpt->flags |= GPT_NOSYNC;
 		}
+		gpt->flags |= GPT_NOSYNC;
 	}
 
 	/*

Reply via email to