diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-06-03 07:38:32 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-06-03 07:38:32 +0000 |
commit | f7ba8755dbdc0afc3ca673800131f3d46a326550 (patch) | |
tree | c7767b892361abbc640cba13e9964cc49724a0a2 /perl-install | |
parent | a93423d7426bfed436ac64ddcfcde4a0f5e7ad09 (diff) | |
download | drakx-backup-do-not-use-f7ba8755dbdc0afc3ca673800131f3d46a326550.tar drakx-backup-do-not-use-f7ba8755dbdc0afc3ca673800131f3d46a326550.tar.gz drakx-backup-do-not-use-f7ba8755dbdc0afc3ca673800131f3d46a326550.tar.bz2 drakx-backup-do-not-use-f7ba8755dbdc0afc3ca673800131f3d46a326550.tar.xz drakx-backup-do-not-use-f7ba8755dbdc0afc3ca673800131f3d46a326550.zip |
(dd) make sysopen() call readable
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/commands.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/commands.pm b/perl-install/commands.pm index e92fe73d8..0325b4955 100644 --- a/perl-install/commands.pm +++ b/perl-install/commands.pm @@ -231,7 +231,7 @@ sub dd { } local (*IF, *OF); my ($tmp, $nb, $read); ref($h{if}) eq 'GLOB' ? (*IF = $h{if}) : sysopen(IF, $h{if}, 0) || die "error: can not open file $h{if}\n"; - ref($h{of}) eq 'GLOB' ? (*OF = $h{of}) : sysopen(OF, $h{of}, 0x41) || die "error: can not open file $h{of}\n"; + ref($h{of}) eq 'GLOB' ? (*OF = $h{of}) : sysopen(OF, $h{of}, O_CREAT|O_WRONLY) || die "error: can not open file $h{of}\n"; $h{bs} = removeXiBSuffix($h{bs}); |