linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fixing a couple warnings
@ 2018-05-31 15:55 Steve Dickson
  2018-05-31 15:55 ` [PATCH 1/2] rpcgen: Only compile the command when configured Steve Dickson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Steve Dickson @ 2018-05-31 15:55 UTC (permalink / raw)
  To: Linux NFS Mailing list

Here are a couple warnings that I started getting
when I compiled on a freshly install Fedora 28.

The first patch turns off the compiling of rpcgen
by default. The command produces code that cause
a number of warnings which are now errors. 

The old glibc rpcgen, which is now in the 
rpcsvc-proto package, does a much better job
of not creating warnings.

The second patch fixes a couple warnings I 
was not seeing.

Steve Dickson (1):
  rpcgen: Only compile the command when configured.

gabriele balducci (1):
  Fixed format overflow warnings in mountd and nfsd

 configure.ac          | 2 +-
 utils/mountd/mountd.c | 2 +-
 utils/nfsd/nfsd.c     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.17.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] rpcgen: Only compile the command when configured.
  2018-05-31 15:55 [PATCH 0/2] Fixing a couple warnings Steve Dickson
@ 2018-05-31 15:55 ` Steve Dickson
  2018-05-31 15:55 ` [PATCH 2/2] Fixed format overflow warnings in mountd and nfsd Steve Dickson
  2018-06-05 17:20 ` [PATCH 0/2] Fixing a couple warnings Steve Dickson
  2 siblings, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2018-05-31 15:55 UTC (permalink / raw)
  To: Linux NFS Mailing list

Only compile and use the internal rpcgen
when required via the --with-rpcgen flag

It is strongly suggested to use the rpcgen from
the new created rpcsvc-proto package be used.

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 276dec3..4b698dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,7 +157,7 @@ AC_ARG_WITH(rpcgen,
 	    RPCGEN_PATH=$rpcgen_path
 	fi
 	AC_SUBST(RPCGEN_PATH)
-	AM_CONDITIONAL(CONFIG_RPCGEN, [test "$RPCGEN_PATH" = ""])
+	AM_CONDITIONAL(CONFIG_RPCGEN, [test "$RPCGEN_PATH" = "internal"])
 AC_ARG_ENABLE(uuid,
 	[AC_HELP_STRING([--disable-uuid], 
 		[Exclude uuid support to avoid buggy libblkid. @<:@default=no@:>@])],
-- 
2.17.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] Fixed format overflow warnings in mountd and nfsd
  2018-05-31 15:55 [PATCH 0/2] Fixing a couple warnings Steve Dickson
  2018-05-31 15:55 ` [PATCH 1/2] rpcgen: Only compile the command when configured Steve Dickson
@ 2018-05-31 15:55 ` Steve Dickson
  2018-06-05 17:20 ` [PATCH 0/2] Fixing a couple warnings Steve Dickson
  2 siblings, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2018-05-31 15:55 UTC (permalink / raw)
  To: Linux NFS Mailing list

From: gabriele balducci <balducci@units.it>

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 utils/mountd/mountd.c | 2 +-
 utils/nfsd/nfsd.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c
index 4c68702..086c39b 100644
--- a/utils/mountd/mountd.c
+++ b/utils/mountd/mountd.c
@@ -702,7 +702,7 @@ main(int argc, char **argv)
 	else
 		NFSCTL_TCPUNSET(_rpcprotobits);
 	for (vers = 2; vers <= 4; vers++) {
-		char tag[10];
+		char tag[20];
 		sprintf(tag, "vers%d", vers);
 		if (conf_get_bool("nfsd", tag, NFSCTL_VERISSET(nfs_version, vers)))
 			NFSCTL_VERSET(nfs_version, vers);
diff --git a/utils/nfsd/nfsd.c b/utils/nfsd/nfsd.c
index 2303a5d..f048631 100644
--- a/utils/nfsd/nfsd.c
+++ b/utils/nfsd/nfsd.c
@@ -98,7 +98,7 @@ main(int argc, char **argv)
 	else
 		NFSCTL_TCPUNSET(protobits);
 	for (i = 2; i <= 4; i++) {
-		char tag[10];
+		char tag[20];
 		sprintf(tag, "vers%d", i);
 		if (conf_get_bool("nfsd", tag, NFSCTL_VERISSET(versbits, i)))
 			NFSCTL_VERSET(versbits, i);
-- 
2.17.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Fixing a couple warnings
  2018-05-31 15:55 [PATCH 0/2] Fixing a couple warnings Steve Dickson
  2018-05-31 15:55 ` [PATCH 1/2] rpcgen: Only compile the command when configured Steve Dickson
  2018-05-31 15:55 ` [PATCH 2/2] Fixed format overflow warnings in mountd and nfsd Steve Dickson
@ 2018-06-05 17:20 ` Steve Dickson
  2 siblings, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2018-06-05 17:20 UTC (permalink / raw)
  To: Linux NFS Mailing list



On 05/31/2018 11:55 AM, Steve Dickson wrote:
> Here are a couple warnings that I started getting
> when I compiled on a freshly install Fedora 28.
> 
> The first patch turns off the compiling of rpcgen
> by default. The command produces code that cause
> a number of warnings which are now errors. 
> 
> The old glibc rpcgen, which is now in the 
> rpcsvc-proto package, does a much better job
> of not creating warnings.
> 
> The second patch fixes a couple warnings I 
> was not seeing.
> 
> Steve Dickson (1):
>   rpcgen: Only compile the command when configured.
> 
> gabriele balducci (1):
>   Fixed format overflow warnings in mountd and nfsd
> 
>  configure.ac          | 2 +-
>  utils/mountd/mountd.c | 2 +-
>  utils/nfsd/nfsd.c     | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
Committed... 

steved.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-05 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-31 15:55 [PATCH 0/2] Fixing a couple warnings Steve Dickson
2018-05-31 15:55 ` [PATCH 1/2] rpcgen: Only compile the command when configured Steve Dickson
2018-05-31 15:55 ` [PATCH 2/2] Fixed format overflow warnings in mountd and nfsd Steve Dickson
2018-06-05 17:20 ` [PATCH 0/2] Fixing a couple warnings Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).