From 44197c130dfe9f3b0f3552504b830b1da5da39fc Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 26 Aug 2002 04:04:28 +0000 Subject: [PATCH] * extfs/a: Use more portable way to redirect all output to /dev/null. From PLD Linux Distribution. --- vfs/ChangeLog | 5 +++++ vfs/extfs/a | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index 98d28ca1a..cb0dfaf6f 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2002-08-26 Pavel Roskin + + * extfs/a: Use more portable way to redirect all output to + /dev/null. From PLD Linux Distribution. + 2002-08-24 Pavel Roskin * vfs.c (vfs_parse_ls_lga): Better error message, avoid empty diff --git a/vfs/extfs/a b/vfs/extfs/a index 8d3dbf149..f9847d22b 100755 --- a/vfs/extfs/a +++ b/vfs/extfs/a @@ -26,29 +26,29 @@ SWITCH: for ( $ARGV[0] ) { /mkdir/ && do { shift; shift; exit 1 if scalar(@ARGV) != 1; - system("$mmd $disk:/$ARGV[0] >& /dev/null"); + system("$mmd $disk:/$ARGV[0] >/dev/null 2>&1"); exit 0; }; /rmdir/ && do { shift; shift; exit 1 if scalar(@ARGV) != 1; - system("$mrd $disk:/$ARGV[0] >& /dev/null"); + system("$mrd $disk:/$ARGV[0] >/dev/null 2>&1"); exit 0; }; /rm/ && do { shift; shift; exit 1 if scalar(@ARGV) != 1; - system("$mdel $disk:/$ARGV[0] >& /dev/null"); + system("$mdel $disk:/$ARGV[0] >/dev/null 2>&1"); exit 0; }; /copyout/ && do { shift; shift; exit 1 if scalar(@ARGV) != 2; ( $src, $dest ) = @ARGV; - system("$mcopy $disk:/$src $dest >& /dev/null"); + system("$mcopy $disk:/$src $dest >/dev/null 2>&1"); exit 0; }; /copyin/ && do { shift; shift; exit 1 if scalar(@ARGV) != 2; ( $dest, $src ) = @ARGV; - system("$mcopy $src $disk:/$dest >& /dev/null"); + system("$mcopy $src $disk:/$dest >/dev/null 2>&1"); exit 0; }; /.*/ && do { # an unfamiliar command exit 1; };