summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2011-01-04 15:02:18 -0800
committerStig Thormodsrud <stig@vyatta.com>2011-01-04 15:09:26 -0800
commit660a9a474ac705a32548e736747e13674f94f3e5 (patch)
tree8e22889a67c82e2114e2338822a6bcf2f07071b0
parentc812653fc9effbb1a380069b6aeaaef3d2aa0b35 (diff)
downloadvyatta-config-mgmt-660a9a474ac705a32548e736747e13674f94f3e5.tar.gz
vyatta-config-mgmt-660a9a474ac705a32548e736747e13674f94f3e5.zip
Change to use euid to get login name.
-rwxr-xr-xscripts/vyatta-commit-revs.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-commit-revs.pl b/scripts/vyatta-commit-revs.pl
index c025342..0c49008 100755
--- a/scripts/vyatta-commit-revs.pl
+++ b/scripts/vyatta-commit-revs.pl
@@ -74,7 +74,7 @@ if (! defined $rollback) {
}
system("sudo logrotate -f -s $lr_state_file $lr_conf_file");
-my $user = getlogin() || getpwuid($<) || "unknown";
+my $user = getlogin() || getpwuid($>) || "unknown";
cm_commit_add_log($user, $commit_via, $ARGV[0]);
exit 0;