summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-09-10 12:28:24 +1000
committerDarren Tucker <dtucker@zip.com.au>2010-09-10 12:28:24 +1000
commit8ccb7392e7ea45d2997afdfa981a450c7db85211 (patch)
tree5dd0769c5ec6a54fffb0e77a670bdc4e84046a6c /ssh.c
parent6af914a15c0c33e8b5bab5ca61919b8562ff1db9 (diff)
- (dtucker) [kex.h key.c packet.h ssh-agent.c ssh.c] A few more ECC ifdefs
for missing headers and compiler warnings.
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index 3ade744b6..70c71bc00 100644
--- a/ssh.c
+++ b/ssh.c
@@ -849,10 +849,19 @@ main(int ac, char **av)
849 */ 849 */
850 r = snprintf(buf, sizeof buf, "%s%s%s", pw->pw_dir, 850 r = snprintf(buf, sizeof buf, "%s%s%s", pw->pw_dir,
851 strcmp(pw->pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR); 851 strcmp(pw->pw_dir, "/") ? "/" : "", _PATH_SSH_USER_DIR);
852 if (r > 0 && (size_t)r < sizeof(buf) && stat(buf, &st) < 0) 852 if (r > 0 && (size_t)r < sizeof(buf) && stat(buf, &st) < 0) {
853#ifdef WITH_SELINUX
854 char *scon;
855
856 matchpathcon(buf, 0700, &scon);
857 setfscreatecon(scon);
858#endif
853 if (mkdir(buf, 0700) < 0) 859 if (mkdir(buf, 0700) < 0)
854 error("Could not create directory '%.200s'.", buf); 860 error("Could not create directory '%.200s'.", buf);
855 861#ifdef WITH_SELINUX
862 setfscreatecon(NULL);
863#endif
864 }
856 /* load options.identity_files */ 865 /* load options.identity_files */
857 load_public_identity_files(); 866 load_public_identity_files();
858 867