From 09fc08085a24949b92e90964382eae8e1c85f165 Mon Sep 17 00:00:00 2001 From: Yoann Blein <yoann.blein@free.fr> Date: Wed, 9 Jul 2014 10:44:37 -0700 Subject: [PATCH] Fix sh5util -u #950. --- src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c b/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c index 838b752d85f..181dfa21950 100644 --- a/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c +++ b/src/plugins/acct_gather_profile/hdf5/sh5util/sh5util.c @@ -299,7 +299,7 @@ static int _set_options(const int argc, char **argv) _init_opts(); - while ((cc = getopt_long(argc, argv, "d:Ehi:Ij:l:N:o:p:s:S:uUvV", + while ((cc = getopt_long(argc, argv, "d:Ehi:Ij:l:N:o:p:s:S:u:UvV", long_options, &option_index)) != EOF) { switch (cc) { case 'd': @@ -351,11 +351,11 @@ static int _set_options(const int argc, char **argv) params.keepfiles = 1; break; case 'u': - u = atoi(optarg); if (uid_from_string(optarg, &u) < 0) { error("No such user --uid=\"%s\"", optarg); return -1; } + params.user = uid_to_string(u); break; case 'U': _help_msg(); -- GitLab