GNU bug report logs -
#13765
build: HP-NonStop fix
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13765 in the body.
You can then email your comments to 13765 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#13765
; Package
coreutils
.
(Tue, 19 Feb 2013 17:48:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Joachim Schmitz" <jojo <at> schmitz-digital.de>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Tue, 19 Feb 2013 17:48:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
> -----Original Message-----
> From: Joachim Schmitz [mailto:jojo <at> schmitz-digital.de]
> Sent: Tuesday, February 19, 2013 9:18 AM
> To: '10305 <at> debbugs.gnu.org'; 'bug-gnulib <at> gnu.org'
> Subject: coreutils-8.21, some changes needed
>
> Hi folks
>
> In an attempt to port coreutils 8.21 to HP-NonStop I stumbled accross a couple problems, here are my fixes to them:
>
> Here another file needs to get adjusted to using the new root-uid.h
>
> diff -EBbu ./src/copy.c.orig ./src/copy.c
> --- ./src/copy.c.orig 2013-02-07 03:37:05 -0600
> +++ ./src/copy.c 2013-02-18 09:29:22 -0600
> @@ -51,6 +51,7 @@
> #include "ignore-value.h"
> #include "ioblksize.h"
> #include "quote.h"
> +#include "root-uid.h"
> #include "same.h"
> #include "savedir.h"
> #include "stat-size.h"
> @@ -1127,7 +1128,7 @@
> {
> bool access_changed = false;
>
> - if (!(sb.st_mode & S_IWUSR) && geteuid () != 0)
> + if (!(sb.st_mode & S_IWUSR) && geteuid () != ROOT_UID)
> access_changed = fchmod_or_lchmod (dest_desc, dst_name, 0600) == 0;
>
> if (!copy_attr (src_name, source_desc, dst_name, dest_desc, x)
> @@ -2718,7 +2719,7 @@
> priv_freeset (pset);
> }
> #else
> - x->chown_privileges = x->owner_privileges = (geteuid () == 0);
> + x->chown_privileges = x->owner_privileges = (geteuid () == ROOT_UID);
> #endif
> }
>
>
>
> On HP-NonStop we use 0x80000000 instead of -1 for getuid(), getgid() and friends to indicate NO_UID rsp. NO_GID
> Guess that difference could go into gnulibs root-uid.h?
> Such a change would affect coreutils in ...src/{groups,id,install,test,whoami}.c (in addition to root-uid.h of course)
>
>
> Here two trailing _ seem missing?
>
> diff -EBbu ./src/numfmt.c.orig ./src/numfmt.c
> --- ./src/numfmt.c.orig 2013-02-14 08:49:30 -0600
> +++ ./src/numfmt.c 2013-02-18 10:58:27 -0600
> @@ -1195,7 +1195,7 @@
> Returns a pointer to the *delimiter* of the requested field,
> or a pointer to NUL (if reached the end of the string). */
> static inline char *
> -__attribute ((pure))
> +__attribute__ ((pure))
> skip_fields (char *buf, int fields)
> {
> char *ptr = buf;
>
And here as a git diff:
diff --git a/src/copy.c b/src/copy.c
index 3f2cc2b..affdda1 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -51,6 +51,7 @@
#include "ignore-value.h"
#include "ioblksize.h"
#include "quote.h"
+#include "root-uid.h"
#include "same.h"
#include "savedir.h"
#include "stat-size.h"
@@ -1127,7 +1128,7 @@ preserve_metadata:
{
bool access_changed = false;
- if (!(sb.st_mode & S_IWUSR) && geteuid () != 0)
+ if (!(sb.st_mode & S_IWUSR) && geteuid () != ROOT_UID)
access_changed = fchmod_or_lchmod (dest_desc, dst_name, 0600) == 0;
if (!copy_attr (src_name, source_desc, dst_name, dest_desc, x)
@@ -2718,7 +2719,7 @@ cp_options_default (struct cp_options *x)
priv_freeset (pset);
}
#else
- x->chown_privileges = x->owner_privileges = (geteuid () == 0);
+ x->chown_privileges = x->owner_privileges = (geteuid () == ROOT_UID);
#endif
}
diff --git a/src/numfmt.c b/src/numfmt.c
index 8c21c2b..50f295d 100644
--- a/src/numfmt.c
+++ b/src/numfmt.c
@@ -1195,7 +1195,7 @@ process_suffixed_number (char *text, long double *result,
Returns a pointer to the *delimiter* of the requested field,
or a pointer to NUL (if reached the end of the string). */
static inline char *
-__attribute ((pure))
+__attribute__ ((pure))
skip_fields (char *buf, int fields)
{
char *ptr = buf;
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#13765
; Package
coreutils
.
(Thu, 18 Oct 2018 23:48:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 13765 <at> debbugs.gnu.org (full text, mbox):
tags 13765 fixed
retitle 13765 build: HP-NonStop fix
close 13765
stop
(triaging old bugs)
On 19/02/13 02:08 AM, Joachim Schmitz wrote:
>> In an attempt to port coreutils 8.21 to HP-NonStop I stumbled accross a couple problems, here are my fixes to them:
>>
>> Here another file needs to get adjusted to using the new root-uid.h
Pushed here in 2013:
https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=6229654741554561952c6106f75681e4382cc890
Closing.
-assaf
Added tag(s) fixed.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 18 Oct 2018 23:48:02 GMT)
Full text and
rfc822 format available.
Changed bug title to 'build: HP-NonStop fix' from 'coreutils-8.21, some changes needed'
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 18 Oct 2018 23:48:03 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
13765 <at> debbugs.gnu.org and "Joachim Schmitz" <jojo <at> schmitz-digital.de>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 18 Oct 2018 23:48:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 16 Nov 2018 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 220 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.