search for: 512s

Displaying 6 results from an estimated 6 matches for "512s".

Did you mean: 512
2006 May 15
0
[PATCH 12/12] bug fix: openssh 4.3p2 ssh-rand-helper bugs
...--- openssh-4.3p2/ssh-rand-helper.c 2005-07-17 02:26:44.000000000 -0500 +++ openssh-4.3p2-kylie/ssh-rand-helper.c 2006-05-08 15:22:13.967153672 -0500 @@ -564,7 +564,8 @@ prng_write_seedfile(void) /* Try to ensure that the parent directory is there */ snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, _PATH_SSH_USER_DIR); - mkdir(filename, 0700); + if (mkdir(filename, 0700) < 0) + fatal("mkdir: %s", strerror(errno)); snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, SSH_PRNG_SEED_FILE); @@ -774,6 +775,7 @@ prng_read_...
2001 Jan 16
1
ssh drops privs when it can't find ~/.ssh/prng_seed
...** */ prng_seed_saved = 1; pw = getpwuid(original_uid); if (pw == NULL) fatal("Couldn't get password entry for current user (%i): %s", original_uid, strerror(errno)); /* Try to ensure that the parent directory is there */ snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, SSH_USER_DIR); mkdir(filename, 0700); snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, SSH_PRNG_SEED_FILE); debug("writing PRNG seed to file %.100s", filename); RAND_bytes(seed, sizeof(seed)); /* Don't care if the seed...
2001 Sep 28
1
openssh-2.9.9p2 assumes pid_t, uid_t, etc. are not 'long'
...y for current user (%i): %s", - original_uid, strerror(errno)); + fatal("Couldn't get password entry for current user (%ld): %s", + (long)original_uid, strerror(errno)); /* Try to ensure that the parent directory is there */ snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, @@ -660,8 +660,8 @@ prng_read_seedfile(void) { pw = getpwuid(original_uid); if (pw == NULL) - fatal("Couldn't get password entry for current user (%i): %s", - original_uid, strerror(errno)); + fatal("Couldn't get password entry for current u...
2015 Feb 27
2
OT: AF 4k sector drives with 512 emulation
Chris Murphy wrote: <snip> > The emulation implementations don't come into play if the alignment is > correct from the start. The better implementations have significantly > less pathological behavior if alignment is wrong, but that's > anecdotal, I don't have any empirical data available. But I'd say in > any case you want it properly aligned. You really,
2015 Feb 27
0
OT: AF 4k sector drives with 512 emulation
...GB 100% (for non-root drives, for example), it's > aligned correctly. i found -a optimal to do weird things, and almost always complain. I just use -a none now, and specify partition start in (512b) sectors, like.. # parted /dev/sdc align none mklabel gpt mkpart pri 512s -1s don't start at 0, as thats where the MBR or GPT has to go. 512 sectors is 256K bytes, which puts you on a erase block boundary with most SSD's as well as HD's. -1s is end of the disk. -- john r pierce 37N 122W somewhere on the middle...
2001 Mar 29
3
Patches for OpenSSH 2.5.2p2: evaluate /etc/default/login, makefiles manpages
...(getenv("TZ")) child_set_env(&env, &envsize, "TZ", getenv("TZ")); @@ -1282,7 +1444,7 @@ /* read $HOME/.ssh/environment. */ if (!options.use_login) { - snprintf(buf, sizeof buf, "%.200s/.ssh/environment", + snprintf(buf, sizeof buf, "%.512s/.ssh/environment", pw->pw_dir); read_environment_file(&env, &envsize, buf); } @@ -1290,7 +1452,7 @@ /* dump the environment */ fprintf(stderr, "Environment:\n"); for (i = 0; env[i]; i++) - fprintf(stderr, " %.200s\n", env[i]); + fprintf(...