Linux NFS development
 help / color / mirror / Atom feed
* [PATCH] fix rpc.gssd -d
@ 2007-01-04 19:46 Steinar H. Gunderson
  2007-01-04 20:54 ` Kevin Coffman
  0 siblings, 1 reply; 6+ messages in thread
From: Steinar H. Gunderson @ 2007-01-04 19:46 UTC (permalink / raw)
  To: nfs

Fix an off-by-one in the handling of the -d option to rpc.gssd; this makes
the option usable again (it would complain that the string was too long).
This patch is originally by Liam Bedford, and extracted from

  https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/76409

--- nfs-utils-1.0.10.orig/utils/gssd/gssd.c
+++ nfs-utils-1.0.10/utils/gssd/gssd.c
@@ -118,7 +118,7 @@ main(int argc, char *argv[])
                                break;
                        case 'd':
                                strncpy(ccachedir, optarg, sizeof(ccachedir));
-                               if (ccachedir[sizeof(ccachedir-1)] != '\0')
+                               if (ccachedir[sizeof(ccachedir)-1] != '\0')
                                        errx(1, "ccachedir path name too long");
                                break;
                        default:

/* Steinar */
-- 
Homepage: http://www.sesse.net/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2007-02-04 23:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-04 19:46 [PATCH] fix rpc.gssd -d Steinar H. Gunderson
2007-01-04 20:54 ` Kevin Coffman
2007-01-04 23:51   ` Steinar H. Gunderson
2007-02-04 22:51     ` Neil Brown
2007-02-04 23:09       ` Neil Brown
2007-02-04 22:53   ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox