]> git.wh0rd.org - dump.git/blobdiff - restore/interactive.c
LFS fixes (explicit use of open64/etc)
[dump.git] / restore / interactive.c
index d8854c663e84523364ddb21df32b52b82e051ae6..3b184fcea3242a243f4b2a1b785518ce07f0b38f 100644 (file)
@@ -2,7 +2,8 @@
  *     Ported to Linux's Second Extended File System as part of the
  *     dump and restore backup suit
  *     Remy Card <card@Linux.EU.Org>, 1994-1997
- *     Stelian Pop <pop@cybercable.fr>, 1999-2000
+ *     Stelian Pop <pop@noos.fr>, 1999-2000
+ *     Stelian Pop <pop@noos.fr> - AlcĂ´ve <www.alcove.fr>, 2000
  */
 
 /*
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: interactive.c,v 1.11 2000/05/29 14:17:37 stelian Exp $";
+       "$Id: interactive.c,v 1.16 2001/03/20 10:02:48 stelian Exp $";
 #endif /* not lint */
 
+#include <config.h>
 #include <sys/param.h>
 #include <sys/stat.h>
 
@@ -95,7 +97,7 @@ static int pflag = 0;         /* prompt mode */
  * Structure and routines associated with listing directories.
  */
 struct afile {
-       ino_t   fnum;           /* inode number of file */
+       dump_ino_t fnum;        /* inode number of file */
        char    *fname;         /* file name */
        short   len;            /* name length */
        char    prefix;         /* prefix character */
@@ -124,7 +126,7 @@ void
 runcmdshell(void)
 {
        register struct entry *np;
-       ino_t ino;
+       dump_ino_t ino;
        struct arglist arglist;
        char curdir[MAXPATHLEN];
        char name[MAXPATHLEN];
@@ -897,6 +899,7 @@ initialize_readline(void)
        rl_attempted_completion_function = restore_completion;
        rl_completion_entry_function = (Function *)NULL;
        rl_completion_append_character = '\0';
+       rl_instream = terminal;
 }
 
 static char **