mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix ag-wipe so that it runs on IRIX (getopt reorders args in glibc).
This commit is contained in:
+4
-4
@@ -4,7 +4,7 @@ use IO::File;
|
||||
use Getopt::Std;
|
||||
|
||||
#
|
||||
# Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved.
|
||||
# Copyright (c) 2003-2004 Silicon Graphics, Inc. All Rights Reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify it
|
||||
# under the terms of version 2 of the GNU General Public License as
|
||||
@@ -69,15 +69,15 @@ if ($retain >= 0) {
|
||||
}
|
||||
|
||||
sub xfs_db {
|
||||
my $xfsdb = "xfs_db -x $device";
|
||||
my $xfsdb = 'xfs_db -x';
|
||||
my %hash;
|
||||
|
||||
foreach (@_) {
|
||||
$xfsdb .= ' -c ' . $_;
|
||||
}
|
||||
print $xfsdb, "\n" if ($verbose);
|
||||
print $xfsdb, ' ', $device, "\n" if ($verbose);
|
||||
|
||||
die unless open(DB, "$xfsdb 2>/dev/null |");
|
||||
die unless open(DB, "$xfsdb $device 2>/dev/null |");
|
||||
while (<DB>) {
|
||||
if (/^(\S+) = (.*)$/) {
|
||||
print if ($verbose);
|
||||
|
||||
Reference in New Issue
Block a user