From: Enrico Scholz Date: Mon, 9 Feb 2004 22:55:00 +0000 (+0000) Subject: further chattr "fixes" X-Git-Tag: version_0_28_91~3 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d86525462a8e27196961b3102c198e5d1a525fde;p=util-vserver.git further chattr "fixes" git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/branches/SYSCALL_SWITCH@843 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/scripts/vserver-copy b/util-vserver/scripts/vserver-copy index c880699..a64f622 100755 --- a/util-vserver/scripts/vserver-copy +++ b/util-vserver/scripts/vserver-copy @@ -298,6 +298,11 @@ if $stopstart; then $SBINDIR/vserver $vserver stop fi +test "$dhost" || { + mkdir -p -m755 $target + chattr -t $target +} + info "Syncing directories" # trailing slashes very important in the rsync! if ! rsync -avxz $rsflag $shcmd $vroot/ $dhost$colon$target/; then diff --git a/util-vserver/src/vbuild.cc b/util-vserver/src/vbuild.cc index 1ad79a9..d04e911 100644 --- a/util-vserver/src/vbuild.cc +++ b/util-vserver/src/vbuild.cc @@ -254,6 +254,7 @@ int main (int argc, char *argv[]) // Now, we do a recursive copy of refserv into newserv umask (0); mkdir (newserv.c_str(),0755); + setext2flag(newserv.c_str(), false, 0); // Check if it is on the same volume struct stat refst,newst; if (vutil_lstat(refserv,refst)!=-1