summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2002-01-02 15:35:33 +0000
committeryar <yar@FreeBSD.org>2002-01-02 15:35:33 +0000
commit2e8685abef409f9c9002aadc4f4aa3a00f5b8ed6 (patch)
treee325f1af4ac9512b795eda3101bc1d6214b69823
parenta26056ca75980ec7500462ee9af440e100d74cd5 (diff)
downloadFreeBSD-src-2e8685abef409f9c9002aadc4f4aa3a00f5b8ed6.zip
FreeBSD-src-2e8685abef409f9c9002aadc4f4aa3a00f5b8ed6.tar.gz
Parse atq(1) output correctly under various (but not all perhaps)
locale settings: allow any date and time separator characters.
-rw-r--r--usr.sbin/adduser/rmuser.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/adduser/rmuser.perl b/usr.sbin/adduser/rmuser.perl
index 7e0f90a..aeb9988 100644
--- a/usr.sbin/adduser/rmuser.perl
+++ b/usr.sbin/adduser/rmuser.perl
@@ -496,7 +496,7 @@ sub invoke_atq {
while(defined($_ = <ATQ>)) {
chomp;
- if (/^\d\d:\d\d:\d\d\s+\d\d\/\d\d\/\d\d\s+(\S+)\s+\S+\s+(\d+)$/) {
+ if (/^\d\d.\d\d.\d\d\s+\d\d.\d\d.\d\d\s+(\S+)\s+\S+\s+(\d+)$/) {
push(@at, $2) if ($1 eq $user);
}
}
OpenPOWER on IntegriCloud