Permalink
Browse files

invoke df with -P option (portability/posix) which makes it print eve…

…rything on one line even for long mount points, making it easier to parse
  • Loading branch information...
thwarted committed Dec 10, 2005
1 parent 9f94b01 commit 956e8e3439163e3efb33c13c2362980db0d626ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 taripdisc
View
@@ -735,7 +735,7 @@ sub find_audio_encoder {
sub free_disk_space {
my $sd = $sx->{storagedir};
my $free;
- if (open(X, "/bin/df $sd |")) {
+ if (open(X, "/bin/df -P $sd |")) {
my $line = <X>; # remove header line
$line = <X>; # data line
close(X);

0 comments on commit 956e8e3

Please sign in to comment.