version 1.30.2.3, 2001/03/12 15:44:13 |
version 1.30.2.4, 2001/03/21 18:53:00 |
|
|
* called by a name other than "ssh" or "Secure Shell". |
* called by a name other than "ssh" or "Secure Shell". |
*/ |
*/ |
/* |
/* |
* Copyright (c) 1999 Theo de Raadt. All rights reserved. |
* Copyright (c) 1999 Theo de Raadt. All rights reserved. |
* Copyright (c) 1999 Aaron Campbell. All rights reserved. |
* Copyright (c) 1999 Aaron Campbell. All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* modification, are permitted provided that the following conditions |
|
|
goto next; |
goto next; |
} |
} |
#define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) |
#define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO) |
snprintf(buf, sizeof buf, "C%04o %lu %s\n", |
snprintf(buf, sizeof buf, "C%04o %lld %s\n", |
(u_int) (stb.st_mode & FILEMODEMASK), |
(u_int) (stb.st_mode & FILEMODEMASK), |
(u_long) stb.st_size, last); |
stb.st_size, last); |
if (verbose_mode) { |
if (verbose_mode) { |
fprintf(stderr, "Sending file modes: %s", buf); |
fprintf(stderr, "Sending file modes: %s", buf); |
fflush(stderr); |
fflush(stderr); |