Skip to content

Commit

Permalink
Changed iRODS identifier to include version.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitwham committed Jan 11, 2016
1 parent 34b5dbd commit 44600c3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tears.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ int main (int argc, char **argv) {
int status;
char *obj_name = NULL;
char *buffer;
char *prog_name;
char prog_name[10];
size_t buf_size = DEFAULT_BUFFER_SIZE;
int verbose = 0;
int opt;
Expand Down Expand Up @@ -255,14 +255,8 @@ int main (int argc, char **argv) {
}

// set the client name so iRODS knows what program is connecting to it
prog_name = strrchr(argv[0], '/');

if (!prog_name) {
prog_name = argv[0];
} else {
prog_name++; // don't want the actual '/'
}

sprintf(prog_name, "%s:%s", PACKAGE_NAME, PACKAGE_VERSION);

if (verbose) {
fprintf(stderr, "Setting client name to: %s\n", prog_name);
}
Expand Down

0 comments on commit 44600c3

Please sign in to comment.