Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perldoc dies because /tmp/.perldoc exists #747

Closed
p5pRT opened this issue Oct 20, 1999 · 1 comment
Closed

perldoc dies because /tmp/.perldoc exists #747

p5pRT opened this issue Oct 20, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Oct 20, 1999

Migrated from rt.perl.org#1671 (status was 'resolved')

Searchable as RT1671$

@p5pRT
Copy link
Author

p5pRT commented Oct 20, 1999

From msouth@shodor.org

There is a file in /tmp named ".perldoc", so perldoc won't work

perldoc dies at line 352​:
  mkdir("/tmp/.perldoc",0755) || die "mkdir /tmp/.perldoc​: $!";

I kludged a fix, here's the diff output​:

333a334

my $dir;
352,353c353,366
< mkdir("/tmp/.perldoc",0755) || die "mkdir /tmp/.perldoc​: $!";
< $tmp = "/tmp/.perldoc/perldoc1.$$";
---
my $trial_dir = "/tmp/.perldoc";

  my $success = 0;
  $dir = $trial\_dir;
  my $i;
  foreach  $i \(0\.\.999\)\{
    $success =  mkdir\("$dir"\,0755\);
    if \($success\) \{
      $tmp = $dir\."/perldoc1\.$$";     
      last;
    \}
    else \{ $dir = $trial\_dir\.$i \}
  \}
  unless \($success\) \{die "no luck on mkdir\(/tmp/\.perldoc\[0\.\.999\]\,0755\)"\}

496c509
< rmdir "/tmp/.perldoc";#for unix only, we ignore the errors for other systems
---

rmdir $dir; #for unix only, we ignore the errors for other systems

Perl Info


Site configuration information for perl 5.00502:

Configured by root at Fri Apr 30 22:36:24 GMT 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=linux, osvers=2.2.7, archname=i586-linux
    uname='linux fatou 2.2.7 #5 smp thu apr 29 12:44:13 mest 1999 i686 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O2 -pipe', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release)
    cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    


@INC for perl 5.00502:
    /usr/lib/perl5/5.00502/i586-linux
    /usr/lib/perl5/5.00502
    /usr/lib/perl5/site_perl/5.005/i586-linux
    /usr/lib/perl5/site_perl/5.005
    .


Environment for perl 5.00502:
    HOME=/home/msouth
    LANG=POSIX
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/msouth/bin:/usr/bin/X11:/home/msouth/bin:/usr/games:/usr/bin:/bin:/usr/local/bin
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant