summaryrefslogtreecommitdiff
path: root/scripts/vyatta-commit-revs.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-commit-revs.pl')
-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;