summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2003-09-24 17:20:35 +0000
committerivan <ivan>2003-09-24 17:20:35 +0000
commit06a81b58e5bfae7df0ef560bd5b9291ad01e0af2 (patch)
treeb17181c0da60214a14ce427672a8e5516d5c881a
parent9f7dc0a0dacae278595b7ae274ea2a561d3442e2 (diff)
don't change dir either when username_pwonly is set
-rw-r--r--FS/FS/part_export/shellcommands.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/FS/FS/part_export/shellcommands.pm b/FS/FS/part_export/shellcommands.pm
index 8d9795a7d..da24e5ca7 100644
--- a/FS/FS/part_export/shellcommands.pm
+++ b/FS/FS/part_export/shellcommands.pm
@@ -93,6 +93,9 @@ sub _export_replace {
if ( $old_uid != $new_uid ) {
$error ||= "can't change uid";
}
+ if ( $old_dir ne $new_dir ) {
+ $error ||= "can't change dir";
+ }
return $error. ' ('. $self->exporttype. ' to '. $self->machine. ')'
if $error;
}