summaryrefslogtreecommitdiff
path: root/sbin/newfs_ext2fs
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2010-02-17 19:26:11 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2010-02-17 19:26:11 +0000
commit53d40b79ba617995cbe22b3b1e024af59dba6ac4 (patch)
tree187883aebccc9fc8917c6cbadbfaa4b4b26ca521 /sbin/newfs_ext2fs
parent9f2fd3e4ed1e1dc880b011635e0eed0772c0258f (diff)
handle -t for when being called by newfs
Diffstat (limited to 'sbin/newfs_ext2fs')
-rw-r--r--sbin/newfs_ext2fs/newfs_ext2fs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sbin/newfs_ext2fs/newfs_ext2fs.c b/sbin/newfs_ext2fs/newfs_ext2fs.c
index b7080434201..ef57f24c0d3 100644
--- a/sbin/newfs_ext2fs/newfs_ext2fs.c
+++ b/sbin/newfs_ext2fs/newfs_ext2fs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: newfs_ext2fs.c,v 1.3 2010/02/16 12:25:35 otto Exp $ */
+/* $OpenBSD: newfs_ext2fs.c,v 1.4 2010/02/17 19:26:10 otto Exp $ */
/* $NetBSD: newfs_ext2fs.c,v 1.8 2009/03/02 10:38:13 tsutsui Exp $ */
/*
@@ -125,7 +125,7 @@ main(int argc, char *argv[])
fsi = fso = -1;
Fflag = Iflag = Zflag = 0;
verbosity = -1;
- opstring = "D:FINO:S:V:Zb:f:i:l:m:n:s:v:";
+ opstring = "D:FINO:S:V:Zb:f:i:l:m:n:s:t:v:";
byte_sized = 0;
while ((ch = getopt(argc, argv, opstring)) != -1)
switch (ch) {
@@ -191,6 +191,9 @@ main(int argc, char *argv[])
fssize = strsuftoi64("file system size",
optarg, INT64_MIN, INT64_MAX, &byte_sized);
break;
+ case 't':
+ /* compat with newfs -t */
+ break;
case 'v':
volname = optarg;
if (volname[0] == '\0')