From f4f77f82129f972d17d95a1e1f7bda9d1f1c4325 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 24 Sep 2003 17:20:33 +0000 Subject: [PATCH] don't change dir either when username_pwonly is set --- FS/FS/part_export/shellcommands.pm | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.11.0