Hi,

The following patch corrects an invalid 644 mode to 0644. fcopy() set
the mode using open(3).

The previous mode requested was 1610 (644 in octal), but the value is
modified by umask value.

This file is the zip exported archive.

-- 
Sebastien Marie


Index: ikeca.c
===================================================================
RCS file: /cvs/src/usr.sbin/ikectl/ikeca.c,v
retrieving revision 1.30
diff -u -p -r1.30 ikeca.c
--- ikeca.c     16 Jan 2015 06:40:17 -0000      1.30
+++ ikeca.c     12 Aug 2015 07:09:38 -0000
@@ -683,7 +683,7 @@ ca_export(struct ca *ca, char *keyname, 
                                    de->d_name);
                                snprintf(dst, sizeof(dst), "%s/export/%s", p,
                                    de->d_name);
-                               fcopy(src, dst, 644);
+                               fcopy(src, dst, 0644);
                        }
                        closedir(dexp);
                }

Reply via email to