search for: do_symlink

Displaying 13 results from an estimated 13 matches for "do_symlink".

2002 Nov 05
0
[PATCH] Add getlink command to sftp
...* --- 585,591 ---- case I_CHDIR: case I_LCHDIR: case I_LMKDIR: + case I_GETLINK: /* Get pathname (mandatory) */ if (get_pathname(&cp, path1)) return(-1); *************** *** 682,687 **** --- 686,695 ---- case I_SYMLINK: path2 = make_absolute(path2, *pwd); err = do_symlink(conn, path1, path2); + break; + case I_GETLINK: + path1 = make_absolute(path1, *pwd); + err = do_getlink(conn, path1); break; case I_RM: path1 = make_absolute(path1, *pwd); *** sftp-client.h@@\main\1 Tue Oct 1 17:26:26 2002 --- sftp-client.h Wed Oct 2 06:11:40 2002 *************...
2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
.../* Copyright (C) Andrew Tridgell 1998 @@ -28,22 +29,24 @@ #define CHECK_RO if (read_only || list_only) {errno = EROFS; return -1;} -int do_unlink(char *fname) +int do_unlink(const char *fname) { if (dry_run) return 0; CHECK_RO return unlink(fname); } -int do_symlink(char *fname1, char *fname2) +#if SUPPORT_LINKS +int do_symlink(const char *fname1, const char *fname2) { if (dry_run) return 0; CHECK_RO return symlink(fname1, fname2); } +#endif -#if HAVE_LINK -int do_link(char *fname1, char *fname2) +#if SUPPORT_HARD_LINKS +int do_...
2006 Mar 21
2
[PATCH] initramfs: CPIO unpacking fix
...ted, mode); } else if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) { + sys_unlink(collected); if (maybe_link() == 0) { sys_mknod(collected, mode, rdev); sys_chown(collected, uid, gid); @@ -291,6 +293,7 @@ static int __init do_copy(void) static int __init do_symlink(void) { collected[N_ALIGN(name_len) + body_len] = '\0'; + sys_unlink(collected); sys_symlink(collected + N_ALIGN(name_len), collected); sys_lchown(collected, uid, gid); state = SkipIt;
2009 Feb 12
2
[patch] hard link protocol extension for sftp
...atvfs(struct sftp_conn *, const /* Rename 'oldpath' to 'newpath' */ int do_rename(struct sftp_conn *, char *, char *); +/* Link 'oldpath' to 'newpath' */ +int do_link(struct sftp_conn *, char *, char *); + /* Rename 'oldpath' to 'newpath' */ int do_symlink(struct sftp_conn *, char *, char *); Index: ssh/sftp-server.c =================================================================== --- ssh.orig/sftp-server.c 2009-02-10 14:54:58.000000000 +0100 +++ ssh/sftp-server.c 2009-02-10 15:15:08.000000000 +0100 @@ -523,6 +523,9 @@ process_init(void) /* fs...
2008 Oct 09
1
DO NOT REPLY [Bug 5820] New: rsync does not replace symlink atomically
...eplace the symlink atomically. */ + if (!get_tmpname(fnametmp, fname)) + goto cleanup; + if (!mktemp(fnametmp)) + goto cleanup; + if (do_symlink(sl, fnametmp) != 0) { + rsyserr(FERROR_XFER, errno, "symlink %s -> \"%s\" failed", + full_fname(fnametmp), sl); + goto cleanup; +...
2006 Feb 21
1
[PATCH] initramfs: multiple CPIO unpacking fix
...ted, mode); } else if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) { + sys_unlink(collected); if (maybe_link() == 0) { sys_mknod(collected, mode, rdev); sys_chown(collected, uid, gid); @@ -291,6 +293,7 @@ static int __init do_copy(void) static int __init do_symlink(void) { collected[N_ALIGN(name_len) + body_len] = '\0'; + sys_unlink(collected); sys_symlink(collected + N_ALIGN(name_len), collected); sys_lchown(collected, uid, gid); state = SkipIt;
2004 Dec 03
2
INITRAMFS: allow no trailer
...+241,9 @@ static __initdata int wfd; static int __init do_name(void) { state = SkipIt; - next_state = Start; + next_state = Reset; if (strcmp(collected, "TRAILER!!!") == 0) { free_hash(); - next_state = Reset; return 0; } if (dry_run) @@ -295,7 +294,7 @@ static int __init do_symlink(void) sys_symlink(collected + N_ALIGN(name_len), collected); sys_lchown(collected, uid, gid); state = SkipIt; - next_state = Start; + next_state = Reset; return 0; } @@ -331,6 +330,10 @@ static void __init flush_buffer(char *bu buf += written; len -= written; state = Start; +...
2010 Feb 08
7
DO NOT REPLY [Bug 7109] New: Need to define NO_SYMLINK_XATTR on Linux
https://bugzilla.samba.org/show_bug.cgi?id=7109 Summary: Need to define NO_SYMLINK_XATTR on Linux Product: rsync Version: 3.1.0 Platform: All OS/Version: Linux Status: NEW Severity: major Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: matt at mattmccutchen.net
2008 Mar 04
1
Several changes missing from [HEAD] fileflags.diff
...fileflags); > int set_file_attrs(const char *fname, struct file_struct *file, > stat_x *sxp, > const char *fnamecmp, int flags); > RETSIGTYPE sig_int(UNUSED(int val)); > @@ -293,11 +295,12 @@ int sock_exec(const char *prog); > int do_unlink(const char *fname); > int do_symlink(const char *fname1, const char *fname2); > int do_link(const char *fname1, const char *fname2); > -int do_lchown(const char *path, uid_t owner, gid_t group); > +int do_lchown(const char *path, uid_t owner, gid_t group, mode_t > mode, uint32 fileflags); > int do_mknod(const char *...
2003 Sep 05
1
new option suggestion '--backup-only'
...eturn; set_perms(fname,file,&st,1); return; } @@ -364,8 +374,12 @@ /* Not a symlink, so delete whatever's * already there and put a new symlink * in place. */ + if (backup_only) + return; delete_file(fname); } + if (backup_only) + return; if (do_symlink(file->link,fname) != 0) { rprintf(FERROR,RSYNC_NAME": symlink \"%s\" -> \"%s\": %s\n", fname,file->link,strerror(errno)); @@ -384,6 +398,8 @@ if (statret != 0 || st.st_mode != file->mode || (DEV64_T)st.st_rdev != file->rdev) { +...
2011 Jul 17
19
xen 4.2 unstable; HVM; 2.6.39.3; HD/Network card error
hi folks, after long trying i need some help from the big world :-) question ******** when I boot a guest system, tried debian 6.0.2 amd64 firmware, I get errors like: 1) after click install on debian 6.0.2 installer [0.642450] vbd vbd-5632: 19 xenbus_dev_probe on device/vbd/5632 [0.642911] vbd vbd-5632: failed to write error node for device/vbd/5632 (19 xenbus_dev_probe on device/vbd/5632) 2)
2011 Jul 17
19
xen 4.2 unstable; HVM; 2.6.39.3; HD/Network card error
hi folks, after long trying i need some help from the big world :-) question ******** when I boot a guest system, tried debian 6.0.2 amd64 firmware, I get errors like: 1) after click install on debian 6.0.2 installer [0.642450] vbd vbd-5632: 19 xenbus_dev_probe on device/vbd/5632 [0.642911] vbd vbd-5632: failed to write error node for device/vbd/5632 (19 xenbus_dev_probe on device/vbd/5632) 2)
2013 Jan 26
0
Processed: switching email address
...bian.org] unblock: nvidia-graphics-drivers-legacy-173xx/173.14.35-4 Changed Bug submitter to 'Andreas Beckmann <anbe at debian.org>' from 'Andreas Beckmann <debian at abeckmann.de>' > submitter 465236 ! Bug #465236 [base-installer] base-installer: make kernel-img.conf/do_symlinks configurable and preseedable Changed Bug submitter to 'Andreas Beckmann <anbe at debian.org>' from 'Andreas Beckmann <debian at abeckmann.de>' > submitter 689545 ! Bug #689545 [gworkspace-apps-wrappers] gworkspace-apps-wrappers: ships a /lib/GNUstep/Applications/ hie...