aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2002-01-14 10:37:05 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2002-01-14 10:37:05 +0000
commitc5a8ad574d865951940a4a1d65d5008cbc84d302 (patch)
tree4b212a61cf0bf72290a6d7471c7f48873ae3ac10
parentfdbb13afd6764eb978a0e492f17dd13d8176a021 (diff)
downloadcommon-data-c5a8ad574d865951940a4a1d65d5008cbc84d302.tar
common-data-c5a8ad574d865951940a4a1d65d5008cbc84d302.tar.gz
common-data-c5a8ad574d865951940a4a1d65d5008cbc84d302.tar.bz2
common-data-c5a8ad574d865951940a4a1d65d5008cbc84d302.tar.xz
common-data-c5a8ad574d865951940a4a1d65d5008cbc84d302.zip
Remove space in name.
-rw-r--r--sbin/chksession2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/chksession b/sbin/chksession
index 3fbd150..6ce62d6 100644
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -30,7 +30,7 @@ sub parse_file {
open F, $f or die "Can't open $f\n";
local $/ = "";
while (<F>) {
- $n = $1 if /^NAME=(.*)/m;
+ ($n = $1) =~ s| ||g if /^NAME=(.*)/m;
$e = $1 if /^EXEC=(.*)/m;
# $d = $1 if /^DESC=(.*)/m;
# $i = $1 if /^ICON=(.*)/m;