added printout of file list to stderr so you know what files you need to
authorHerb Lewis <herb@samba.org>
Sat, 3 Jan 1998 05:12:10 +0000 (05:12 +0000)
committerHerb Lewis <herb@samba.org>
Sat, 3 Jan 1998 05:12:10 +0000 (05:12 +0000)
copy to your printer$ share
(This used to be commit bdfa5c709986051e78198c68c5a90358fdfa780e)

source3/utils/make_printerdef.c

index 6f605c41f87224ea75cdd2ff65ceb0974188497d..ef890163f0473ca83f918fbfb75e7c91d848d105 100644 (file)
@@ -190,6 +190,7 @@ void scan_copyfiles(FILE *fichier, char *chaine)
 #ifdef DEBUGIT
   fprintf(stderr,"In scan_copyfiles Lookup up of %s\n",chaine);
 #endif 
+  fprintf(stderr,"\nCopy the following files to your printer$ share location:\n");
   part=strtok(chaine,",");
   do {
      /* If the entry start with a @ then it's a file to copy
@@ -201,6 +202,7 @@ void scan_copyfiles(FILE *fichier, char *chaine)
       if (strlen(files_to_copy) != 0)
         strcat(files_to_copy,",");
       strcat(files_to_copy,&part[1]);
+      fprintf(stderr,"%s\n",&part[1]);
     } else {
       lookup_entry(fichier,part);
       i=0;
@@ -219,12 +221,14 @@ void scan_copyfiles(FILE *fichier, char *chaine)
           strcat(files_to_copy,",");
        strcat(files_to_copy,direc);
        strcat(files_to_copy,buffer[i]);
+       fprintf(stderr,"%s%s\n",direc,buffer[i]);
        i++;
       } 
     }
     part=strtok(NULL,",");
   }
   while (part!=NULL);
+  fprintf(stderr,"\n");
 }