-$Id: CHANGES,v 1.178 2002/06/05 13:29:12 stelian Exp $
+$Id: CHANGES,v 1.179 2002/06/08 07:10:36 stelian Exp $
Changes between versions 0.4b28 and 0.4b29 (released ??????????????)
====================================================================
of the inode being dumped, but this could evolve in future versions
to include interesting debugging output.
+8. Added a -o flag to restore, which automatically restores the current
+ directory permissions in -i or -x mode, without asking the operator
+ whether to do so. Patch submitted by Tony Clayton <tonyc@e-smith.com>
+ and Peter Samuel <peters@e-smith.com>.
+
Changes between versions 0.4b27 and 0.4b28 (released April 12, 2002)
====================================================================
-$Id: THANKS,v 1.59 2002/05/17 08:10:43 stelian Exp $
+$Id: THANKS,v 1.60 2002/06/08 07:10:37 stelian Exp $
Dump and restore were written by the people of the CSRG at the University
of California, Berkeley.
Rob Cermak cermak@ahab.rutgers.edu
Isaac Chuang ike@isl.stanford.edu
Rainer Clasen bj@ncc.cicely.de
+Tony Clayton tonyc@e-smith.com
W. Reilly Cooley wcooley@nakedape.cc
Chris Danis screechco@home.com
Abhijit Dasgupta abhijit@ans.net
Kenneth Porter shiva@well.com
Graham Reed greed@users.sourceforge.net
Bernhard Sadlowski sadlowsk@Mathematik.Uni-Bielefeld.DE
+Peter Samuel peters@e-smith.com
Jan Sanislo oystr@cs.washington.edu
Jörg Schilling schilling@fokus.gmd.de
Patrik Schindler poc@pocnet.net
#ifndef lint
static const char rcsid[] =
- "$Id: dirs.c,v 1.18 2002/02/04 11:18:46 stelian Exp $";
+ "$Id: dirs.c,v 1.19 2002/06/08 07:10:37 stelian Exp $";
#endif /* not lint */
#include <config.h>
ep->e_flags &= ~NEW;
continue;
}
- if (node.ino == ROOTINO &&
+ if ((flags & FORCE) == 0 &&
+ node.ino == ROOTINO &&
reply("set owner/mode for '.'") == FAIL)
continue;
}
#ifndef lint
static const char rcsid[] =
- "$Id: interactive.c,v 1.23 2002/02/25 13:54:53 stelian Exp $";
+ "$Id: interactive.c,v 1.24 2002/06/08 07:10:37 stelian Exp $";
#endif /* not lint */
#include <config.h>
goto bad;
createfiles();
createlinks();
- setdirmodes(0);
+ setdirmodes(oflag ? FORCE : 0);
if (dflag)
checkrestore();
volno = 0;
#ifndef lint
static const char rcsid[] =
- "$Id: main.c,v 1.39 2002/06/05 13:29:15 stelian Exp $";
+ "$Id: main.c,v 1.40 2002/06/08 07:10:37 stelian Exp $";
#endif /* not lint */
#include <config.h>
int aflag = 0, bflag = 0, cvtflag = 0, dflag = 0, vflag = 0, yflag = 0;
int hflag = 1, mflag = 1, Mflag = 0, Nflag = 0, Vflag = 0, zflag = 0;
-int uflag = 0, lflag = 0, Lflag = 0;
+int uflag = 0, lflag = 0, Lflag = 0, oflag = 0;
char *Afile = NULL;
int dokerberos = 0;
char command = '\0';
#ifdef KERBEROS
"k"
#endif
- "lL:mMN"
+ "lL:mMNo"
#ifdef USE_QFA
"P:Q:"
#endif
case 'N':
Nflag = 1;
break;
+ case 'o':
+ oflag = 1;
+ break;
#ifdef USE_QFA
case 'Q':
gTapeposfile = optarg;
}
createfiles();
createlinks();
- setdirmodes(0);
+ setdirmodes(oflag ? FORCE : 0);
if (dflag)
checkrestore();
#ifdef DEBUG_QFA
"usage:"
"\t%s -C [-cd" kerbflag "lMvVy] [-b blocksize] [-D filesystem] [-f file]\n"
"\t%s [-F script] [-L limit] [-s fileno]\n"
- "\t%s -i [-acdh" kerbflag "lmMuvVy] [-A file] [-b blocksize] [-f file]\n"
+ "\t%s -i [-acdh" kerbflag "lmMouvVy] [-A file] [-b blocksize] [-f file]\n"
"\t%s [-F script] " qfaflag "[-s fileno]\n"
#ifdef USE_QFA
"\t%s -P file [-acdh" kerbflag "lmMuvVy] [-A file] [-b blocksize]\n"
"\t%s [-s fileno] [-T directory]\n"
"\t%s -t [-cdh" kerbflag "lMuvVy] [-A file] [-b blocksize] [-f file]\n"
"\t%s [-F script] " qfaflag "[-s fileno] [-X filelist] [file ...]\n"
- "\t%s -x [-acdh" kerbflag "lmMuvVy] [-A file] [-b blocksize] [-f file]\n"
+ "\t%s -x [-acdh" kerbflag "lmMouvVy] [-A file] [-b blocksize] [-f file]\n"
"\t%s [-F script] " qfaflag "[-s fileno] [-X filelist] [file ...]\n",
__progname, white,
__progname, white,
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: restore.8.in,v 1.26 2002/06/05 13:29:15 stelian Exp $
+.\" $Id: restore.8.in,v 1.27 2002/06/08 07:10:37 stelian Exp $
.\"
.Dd __DATE__
.Dt RESTORE 8
.Op Fl T Ar directory
.Nm restore
.Fl i
-.Op Fl acdhklmMNuvVy
+.Op Fl acdhklmMNouvVy
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
.Op file ...
.Nm restore
.Fl x
-.Op Fl adchklmMNuvVy
+.Op Fl adchklmMNouvVy
.Op Fl A Ar file
.Op Fl b Ar blocksize
.Op Fl f Ar file
or
.Fl x
command without actually writing any file on disk.
+.It Fl o
+The
+.Fl o
+flag causes
+.Nm
+to automatically restore the current directory permissions
+without asking the operator whether to do so in one of
+.Fl i
+or
+.Fl x
+modes.
.It Fl Q Ar file
Use the file
.Ar file
* Stelian Pop <stelian@popies.net>, 1999-2000
* Stelian Pop <stelian@popies.net> - Alcôve <www.alcove.com>, 2000-2002
*
- * $Id: restore.h,v 1.25 2002/02/04 11:18:46 stelian Exp $
+ * $Id: restore.h,v 1.26 2002/06/08 07:10:37 stelian Exp $
*/
/*
extern int Lflag; /* compare errors limit */
extern int mflag; /* restore by name instead of inode number */
extern int Mflag; /* multi-volume restore */
+extern int oflag; /* do restore permissions without asking */
extern int Vflag; /* multi-volume on a single device like CDROM */
extern int Nflag; /* do not write the disk */
extern int uflag; /* unlink symlink targets */