Marc Haber pushed to branch master at Debian / adduser
Commits:
1aae1ef3 by Marc Haber at 2025-02-19T15:52:48+01:00
streamline debugging output for systemcall functions
Git-Dch: ignore
- - - - -
1 changed file:
- AdduserCommon.pm
Changes:
=====================================
AdduserCommon.pm
=====================================
@@ -307,7 +307,7 @@ sub get_group_members
sub systemcall {
my $c = join(' ', @_);
- log_debug( "$c" );
+ log_debug( "executing systemcall: %s", $command );
if (system(@_)) {
if ($?>>8) {
log_fatal( mtx("`%s' returned error code %d. Exiting."), $c, $?>>8
);
@@ -320,7 +320,7 @@ sub systemcall {
sub systemcall_or_warn {
my $command = join(' ', @_);
- log_debug( "executing systemcall: %s", $command );
+ log_debug( "executing systemcall_or_warn: %s", $command );
system(@_);
if ($? == -1) {
@@ -335,6 +335,8 @@ sub systemcall_or_warn {
}
sub systemcall_silent {
+ my $command = join(' ', @_);
+ log_debug( "executing systemcall_silent: %s", $command );
my $pid = fork();
if( !defined($pid) ) {
@@ -355,7 +357,7 @@ sub systemcall_silent {
sub systemcall_silent_error {
my $command = join(' ', @_);
- log_debug( "$command" );
+ log_debug( "executing systemcall_silent_error: %s", $command );
my $output = `$command >/dev/null 2>&1`;
return $?;
}
View it on GitLab:
https://salsa.debian.org/debian/adduser/-/commit/1aae1ef35eba09c04237868ada66594a8e557773
--
View it on GitLab:
https://salsa.debian.org/debian/adduser/-/commit/1aae1ef35eba09c04237868ada66594a8e557773
You're receiving this email because of your account on salsa.debian.org.
_______________________________________________
Pkg-shadow-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-shadow-devel