/[pdpsoft]/trunk/grid-mw-security/glexec/util/lcaslcmaps_getaccount_cli/lcaslcmaps_getaccount_cli.c
ViewVC logotype

Diff of /trunk/grid-mw-security/glexec/util/lcaslcmaps_getaccount_cli/lcaslcmaps_getaccount_cli.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1836 by msalle, Tue Jul 6 09:45:31 2010 UTC revision 1837 by msalle, Tue Jul 6 12:24:17 2010 UTC
# Line 416  int main(int argc, char *argv[])       { Line 416  int main(int argc, char *argv[])       {
416              case 'h':              case 'h':
417                  usage(argv[0]);                  usage(argv[0]);
418              case 's': /* Do not log to file but to stderr */              case 's': /* Do not log to file but to stderr */
419                  if (lcmaps_logfile) fclose(lcmaps_logfile);                  if (lcmaps_logfile && lcmaps_logfile!=stderr)
420                  if (lcas_logfile)   fclose(lcas_logfile);                      fclose(lcmaps_logfile);
421                    if (lcas_logfile && lcas_logfile!=stderr)
422                        fclose(lcas_logfile);
423                  lcmaps_logfile=lcas_logfile=stderr;                  lcmaps_logfile=lcas_logfile=stderr;
424                  break;                  break;
425              case 'q':              case 'q':
# Line 469  int main(int argc, char *argv[])       { Line 471  int main(int argc, char *argv[])       {
471                  exit(1);                  exit(1);
472          }          }
473      }      }
474        
475      /* Check if we have something to do... */      /* Check if we have something to do... */
476      if (do_lcas==0 && do_lcmaps==0) {      if (do_lcas==0 && do_lcmaps==0) {
477          printf("Nothing to do, see %s -h for valid options.\n",argv[0]);          printf("Nothing to do, see %s -h for valid options.\n",argv[0]);

Legend:
Removed from v.1836  
changed lines
  Added in v.1837

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28