diff options
author | Chmouel Boudjnah <chmouel@mandriva.org> | 1999-12-27 16:19:01 +0000 |
---|---|---|
committer | Chmouel Boudjnah <chmouel@mandriva.org> | 1999-12-27 16:19:01 +0000 |
commit | 35746ef366509d19bc35becdfd92aedb0340f49b (patch) | |
tree | 247123fd875a9a0bdf1abb916941f3fc268a4158 /sbin/chksession | |
parent | ecf9464e6816b0462baaad1bb9271b6b07120e74 (diff) | |
download | common-data-35746ef366509d19bc35becdfd92aedb0340f49b.tar common-data-35746ef366509d19bc35becdfd92aedb0340f49b.tar.gz common-data-35746ef366509d19bc35becdfd92aedb0340f49b.tar.bz2 common-data-35746ef366509d19bc35becdfd92aedb0340f49b.tar.xz common-data-35746ef366509d19bc35becdfd92aedb0340f49b.zip |
"Seethechangelog"
Diffstat (limited to 'sbin/chksession')
-rw-r--r-- | sbin/chksession | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/chksession b/sbin/chksession index 4ef57e5..7226a84 100644 --- a/sbin/chksession +++ b/sbin/chksession @@ -61,6 +61,7 @@ while ($ARGV[0] =~ /^--/ || $ARGV[0] =~ /^-/) { } elsif (/^--first/ || /^-F/) { $first++; } elsif (/^--gdm/ || /^-g/) { + die "You should be root to build gdm session\n" if $< != 0; $gdm++; } elsif (/^--list/ || /^-l/) { $list++; @@ -97,7 +98,7 @@ if ($gdm) { chdir $d; #Any better way ? - opendir D, $d; + opendir D, $d or die "Can't open $d\n"; for ( readdir(D)) { next if /^\.\.?/;next if /^Failsafe/; chmod 0644, $_; } closedir D; |