~ubuntu-branches/ubuntu/trusty/cctools/trusty-proposed

« back to all changes in this revision

Viewing changes to chirp/src/chirp_put.c

  • Committer: Package Import Robot
  • Author(s): Michael Hanke
  • Date: 2012-03-30 12:40:01 UTC
  • mfrom: (9.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120330124001-ze0lhxm5uwq2e3mo
Tags: 3.4.2-2
Added patch to handle a missing CFLAGS variable in Python's sysconfig
report (Closes: #661658).

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include <time.h>
14
14
#include <sys/stat.h>
15
15
 
 
16
#include "chirp_client.h"
16
17
#include "chirp_reli.h"
17
18
#include "chirp_recursive.h"
18
19
#include "chirp_stream.h"
49
50
        printf(" -b <size>  Set transfer buffer size. (default is %d bytes)\n", buffer_size);
50
51
        printf(" -d <flag>  Enable debugging for this subsystem.\n");
51
52
        printf(" -f         Follow input file like tail -f.\n");
 
53
        printf(" -i <files> Comma-delimited list of tickets to use for authentication.\n");
52
54
        printf(" -t <time>  Timeout for failure. (default is %ds)\n", timeout);
53
55
        printf(" -v         Show program version.\n");
54
56
        printf(" -h         This message.\n");
63
65
        time_t stoptime;
64
66
        FILE *file;
65
67
        char c;
 
68
        char *tickets = NULL;
66
69
 
67
70
        debug_config(argv[0]);
68
71
 
69
 
        while((c = getopt(argc, argv, "a:b:d:ft:vh")) != (char) -1) {
 
72
        while((c = getopt(argc, argv, "a:b:d:fi:t:vh")) != (char) -1) {
70
73
                switch (c) {
71
74
                case 'a':
72
75
                        auth_register_byname(optarg);
81
84
                case 'f':
82
85
                        follow_mode = 1;
83
86
                        break;
 
87
                case 'i':
 
88
                        tickets = strdup(optarg);
 
89
                        break;
84
90
                case 't':
85
91
                        timeout = string_time_parse(optarg);
86
92
                        break;
98
104
 
99
105
        if(!did_explicit_auth)
100
106
                auth_register_all();
 
107
        if(tickets) {
 
108
                auth_ticket_load(tickets);
 
109
                free(tickets);
 
110
        } else if(getenv(CHIRP_CLIENT_TICKETS)) {
 
111
                auth_ticket_load(getenv(CHIRP_CLIENT_TICKETS));
 
112
        } else {
 
113
                auth_ticket_load(NULL);
 
114
        }
101
115
 
102
116
        if((argc - optind) < 3) {
103
117
                show_help(argv[0]);