mkstemp formats must end in exactly six X's
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13014 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -117,7 +117,7 @@ main(int argc, char **argv)
 | 
				
			|||||||
  argv += optind;
 | 
					  argv += optind;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef KRB5
 | 
					#ifdef KRB5
 | 
				
			||||||
  snprintf (tf, sizeof(tf), "%sXXXXXXXXXX", KRB5_DEFAULT_CCROOT);
 | 
					  snprintf (tf, sizeof(tf), "%sXXXXXX", KRB5_DEFAULT_CCROOT);
 | 
				
			||||||
  f = mkstemp (tf + 5);
 | 
					  f = mkstemp (tf + 5);
 | 
				
			||||||
  if (f < 0)
 | 
					  if (f < 0)
 | 
				
			||||||
      err(1, "mkstemp failed");
 | 
					      err(1, "mkstemp failed");
 | 
				
			||||||
@@ -126,7 +126,7 @@ main(int argc, char **argv)
 | 
				
			|||||||
  esetenv("KRB5CCNAME", tf, 1);
 | 
					  esetenv("KRB5CCNAME", tf, 1);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  snprintf (tf, sizeof(tf), "%s_XXXXXXXXXX", TKT_ROOT);
 | 
					  snprintf (tf, sizeof(tf), "%s_XXXXXX", TKT_ROOT);
 | 
				
			||||||
  f = mkstemp (tf);
 | 
					  f = mkstemp (tf);
 | 
				
			||||||
  if (f < 0)
 | 
					  if (f < 0)
 | 
				
			||||||
      err(1, "mkstemp failed");
 | 
					      err(1, "mkstemp failed");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user