aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/chksession
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>1999-12-28 16:27:44 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>1999-12-28 16:27:44 +0000
commit0649b8e7cc1a1db08e7934fa053d9cfb541b5a36 (patch)
tree75847dc085246df0fe0a26f3eee3cdd1e87797e7 /sbin/chksession
parente7fccc271c80bc68ed0ecbc54034539a4bca557e (diff)
downloadcommon-data-0649b8e7cc1a1db08e7934fa053d9cfb541b5a36.tar
common-data-0649b8e7cc1a1db08e7934fa053d9cfb541b5a36.tar.gz
common-data-0649b8e7cc1a1db08e7934fa053d9cfb541b5a36.tar.bz2
common-data-0649b8e7cc1a1db08e7934fa053d9cfb541b5a36.tar.xz
common-data-0649b8e7cc1a1db08e7934fa053d9cfb541b5a36.zip
"Seethechangelog"
Diffstat (limited to 'sbin/chksession')
-rw-r--r--sbin/chksession12
1 files changed, 10 insertions, 2 deletions
diff --git a/sbin/chksession b/sbin/chksession
index 7226a84..a735c0c 100644
--- a/sbin/chksession
+++ b/sbin/chksession
@@ -124,5 +124,13 @@ if ($xsession) {
exit (0);
}
-print shift @lf, "\n" if $first;
-if ($list) { my $p; for(@lf) { $p .= /$lf[-1]/ ? "$_ default failsafe" : "$_ " } print "$p\n"; }
+@lf ? print shift @lf, "\n" : print "Default\n"
+ if $first;
+
+if ($list) {
+ if (@lf) {
+ my $p; for(@lf) { $p .= /$lf[-1]/ ? "$_ default failsafe" : "$_ " } print "$p\n";
+ } else {
+ print "Default\n";
+ }
+}