[Pkg-shadow-devel] [Git][debian/adduser][master] streamline debugging output for systemcall functions
Marc Haber (@zugschlus)
gitlab at salsa.debian.org
Wed Feb 19 15:04:46 GMT 2025
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-shadow-devel/attachments/20250219/8ec1a901/attachment-0001.htm>
More information about the Pkg-shadow-devel
mailing list