Skip to content

Minor doc fix in perlfunc #13473

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

Closed
p5pRT opened this issue Dec 16, 2013 · 5 comments
Closed

Minor doc fix in perlfunc #13473

p5pRT opened this issue Dec 16, 2013 · 5 comments

Comments

@p5pRT
Copy link

p5pRT commented Dec 16, 2013

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

Searchable as RT120806$

@p5pRT
Copy link
Author

p5pRT commented Dec 16, 2013

From [email protected]

Noticed today that 'chown' in perlfunc references portability issues
in 'chmod' instead of 'chown'. Attached is a patch for those three
characters.

And my perl -V for the spam gods​:

perl -V
Summary of my perl5 (revision 5 version 18 subversion 1) configuration​:
  Commit id​: 75c3005
  Platform​:
  osname=linux, osvers=3.8.0-31-generic, archname=x86_64-linux
  uname='linux pmubuntu 3.8.0-31-generic #46-ubuntu smp tue sep 10
20​:03​:44 utc 2013 x86_64 x86_64 x86_64 gnulinux '
  config_args='-des'
  hint=recommended, useposix=true, d_sigaction=define
  useithreads=undef, usemultiplicity=undef
  useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
  use64bitint=define, use64bitall=define, uselongdouble=undef
  usemymalloc=n, bincompat5005=undef
  Compiler​:
  cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
  optimize='-O2',
  cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
  ccversion='', gccversion='4.7.3', gccosandvers=''
  intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
  ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
  alignbytes=8, prototype=define
  Linker and Libraries​:
  ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
  libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib
/usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
  libs=-lnsl -ldl -lm -lcrypt -lutil -lc
  perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
  libc=, so=so, useshrplib=false, libperl=libperl.a
  gnulibc_version='2.17'
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
  cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'

Characteristics of this binary (from libperl)​:
  Compile-time options​: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
  PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
  PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
  USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE
  USE_LOCALE_COLLATE USE_LOCALE_CTYPE
  USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
  Built under linux
  Compiled at Oct 28 2013 14​:32​:58
  @​INC​:
  /usr/local/lib/perl5/site_perl/5.18.1/x86_64-linux
  /usr/local/lib/perl5/site_perl/5.18.1
  /usr/local/lib/perl5/5.18.1/x86_64-linux
  /usr/local/lib/perl5/5.18.1
  .

@p5pRT
Copy link
Author

p5pRT commented Dec 16, 2013

From [email protected]

0001-Fix-reference-to-chmod-portability-in-chown.patch
From f063d92c0719281f0e42ae478d298e07d7213fa9 Mon Sep 17 00:00:00 2001
From: Peter Martini <[email protected]>
Date: Mon, 16 Dec 2013 18:01:23 -0500
Subject: [PATCH] Fix reference to chmod portability in chown

---
 pod/perlfunc.pod | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 0a57090..0bffdfc 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -972,7 +972,7 @@ On POSIX systems, you can detect this condition this way:
     use POSIX qw(sysconf _PC_CHOWN_RESTRICTED);
     $can_chown_giveaway = not sysconf(_PC_CHOWN_RESTRICTED);
 
-Portability issues: L<perlport/chmod>.
+Portability issues: L<perlport/chown>.
 
 =item chr NUMBER
 X<chr> X<character> X<ASCII> X<Unicode>
-- 
1.8.1.2

@p5pRT
Copy link
Author

p5pRT commented Dec 16, 2013

From @tonycoz

On Mon Dec 16 15​:05​:40 2013, pcm wrote​:

Noticed today that 'chown' in perlfunc references portability issues
in 'chmod' instead of 'chown'. Attached is a patch for those three
characters.

Thanks, applied as f48496b.

Tony

@p5pRT
Copy link
Author

p5pRT commented Dec 16, 2013

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Dec 16, 2013

@tonycoz - Status changed from 'open' to 'resolved'

@p5pRT p5pRT closed this as completed Dec 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant