search for: fname2

Displaying 16 results from an estimated 16 matches for "fname2".

Did you mean: fname
2012 May 07
0
Solved problem with hard links and schg flag under FreeBSD
...er fileflags.diff. Please have a look at the changes. What is the "official" way of asking for inclusion in the rsync distribution? Reporting a bug via bugzilla? Best regards Franz -------------- next part -------------- #ifdef HAVE_LINK int do_link(const char *fname1, const char *fname2) { if (dry_run) return 0; RETURN_ERROR_IF_RO_OR_LO; if (link(fname1, fname2) == 0) return 0; #ifdef SUPPORT_FORCE_CHANGE if (force_change && (errno == EPERM || errno == EACCES)) { char parent[MAXPATHLEN]; int parent_flags; int saved_errno = errno; int file_flags = make_mutabl...
2011 Oct 17
2
Reading data with 'awk' - basics?
...it pretty inefficiently as I write the subset to disk, before reading it into R. Is there a way that I can read it into an R object without writing to disk? For example, this is what I do currently: ## write test sample file mat1 <- matrix(sample(1:100,16),8,2) fname1 <- 'temp1.txt' fname2 <- 'temp2.txt' write.table(mat1,fname1,sep='\t',row.names=F,col.names=F) ## Read a subset of rows, write to file, and read from file system(paste("awk '(NR > 1 && NR < 4) {print $0}' ",fname1," > ",fname2,sep='')) mat2 <- r...
2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
...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_link(const char *fname1, co...
2006 May 04
6
DO NOT REPLY [Bug 3752] New: rsync unusable with EncFS filesystem
https://bugzilla.samba.org/show_bug.cgi?id=3752 Summary: rsync unusable with EncFS filesystem Product: rsync Version: 2.6.8 Platform: x86 OS/Version: Linux Status: NEW Severity: critical Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: micheala@jacey.org
2009 Sep 03
1
encoding problem using xml package
...t; </MESSUNG> </Messdaten> </ITEM> </Daten> The following code shows that i cannot extract the Value of "Länge" correctly. Any help is very welcom. ---------------------------------------- Code Start ------------ > fname1 <- "test1.xml" > fname2 <- "test2.xml" > doc <- xmlTreeParse(fname1,useInternalNodes=T) > show(doc) <?xml version="1.0" encoding="ISO-8859-1"?> <Daten> <ITEM> <Messdaten> <MESSUNG> <BEZEICHNUNG>Länge</BEZEICHNUNG>...
2017 Jul 13
2
Help with R script
Using Ulrik?s example data (and assuming I understand what is wanted), here is what I would do: ex.dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName: fname2", "Fval: Fval2.name2", "FName: fname3") tst <- data.frame(x = ex.dat, stringsAsFactors=FALSE) sp <- strsplit(tst$x, ':', fixed=TRUE) chk <- unlist(lapply(sp, function(txt) txt[2] != ' ')) newtst <- tst[chk,,drop=FALSE] This both assumes and req...
2005 Nov 19
3
Permissions problem I don't understand
I am try to use rsync from my windows box (under cygwin) to back up "My Documents" on to a debian server (known on my home network as roo.home) running rsyncd from inetd where it is run as root. my rsyncd.conf file sets the gid and uid to user backup.backup thusly:- syslog facility = daemon uid = backup gid = backup hosts allow = 192.168.0.0/24 hosts deny = 0.0.0.0/0 timeout = 600
2017 Jul 14
0
Help with R script
@Don your solution does not solve Vijayan's scenario 2. I used spread and gather for that. An alternative solution to insert mising Fval - picking up with Don's newtst - is newtst <- c("FName: fname1", "Fval: Fval1.name1", "FName: fname2", "Fval: Fval2.name2", "FName: fname3", "FName: fname4", "Fval: fval4.fname4") newtst_new <- vector(mode = "character", length = sum(grepl("FName", newtst)) * 2) newtst_len <- length(newtst) i <- 1 j <- 1 while(i <= ne...
2009 Oct 01
0
patch: --force-change for hard links
...a -rw-r--r-- 2 root wheel schg 0B Oct 1 15:50 b The patch: --- orig/syscall.c 2009-09-29 15:34:03.293118000 +0200 +++ syscall.c 2009-09-29 16:11:29.400671306 +0200 @@ -82,7 +82,23 @@ { if (dry_run) return 0; RETURN_ERROR_IF_RO_OR_LO; - return link(fname1, fname2); + if (link(fname1, fname2) == 0) + return 0; +#ifdef SUPPORT_FORCE_CHANGE + if (force_change && errno == EPERM) { + STRUCT_STAT st; + + if (x_lstat(fname1, &st, NULL) == 0 + && make_mutable(fname1, st.s...
2017 Jul 13
0
Help with R script
Hi Vijayan, one way going about it *could* be this: library(dplyr) library(tidyr) library(purrr) ex_dat <- c("FName: fname1", "Fval: Fval1.name1", "Fval: ", "FName: fname2", "Fval: Fval2.name2", "FName: fname3") data.frame(x = ex_dat) %>% separate(x, c("F1", "F2"), sep = ": ") %>% filter(F2 != "") %>% group_by(F1) %>% mutate(indx = row_number()) %>% spread(F1, F2, fill = "...
2017 Jul 13
2
Help with R script
Dear R-help Group Scenario 1: I have a text file running to 1000 of lines...that is like as follows: [922] "FieldName: Wk3PackSubMonth" [923] "FieldValue: Apr" [924] "FieldName: Wk3PackSubYear" [925] "FieldValue: 2017" [926] "FieldName: Wk3Code1" [927] "FieldValue: " [928] "FieldValue: K4" [929] "FieldName:
2008 Mar 04
1
Several changes missing from [HEAD] fileflags.diff
...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 *pathname, mode_t mode, dev_t dev); >...
2008 Feb 15
4
Revised flags patch
...@@ -296,6 +298,7 @@ int do_mknod(const char *pathname, mode_ int do_rmdir(const char *pathname); int do_open(const char *pathname, int flags, mode_t mode); int do_chmod(const char *path, mode_t mode); +int do_chflags(const char *path, u_long flags); int do_rename(const char *fname1, const char *fname2); void trim_trailing_slashes(char *name); int do_mkdir(char *fname, mode_t mode); diff -brpu rsync-3.0.0pre9/rsync.1 rsync-3.0.0pre9-flags/rsync.1 --- rsync-3.0.0pre9/rsync.1 Mon Feb 11 05:16:37 2008 +++ rsync-3.0.0pre9-flags/rsync.1 Fri Feb 15 20:25:34 2008 @@ -413,6 +413,7 @@ to the detailed de...
1999 Jul 02
1
preexec: return code not used? (PR#18576)
T.D.Lee@durham.ac.uk wrote: > > > But we'd like to go one step further and have the return code from preexec > be used to continue or abort the connection being established. The script > above would be modified to generate this return code. > > Looking through the source code (smbd/service.c), it doesn't seem to check > the return code (calling smbrun to do the
2004 Apr 11
1
fchmod in do_mkstemp? (patch included)
...to.h =================================================================== RCS file: /cvsroot/rsync/proto.h,v retrieving revision 1.185 diff -u -w -r1.185 proto.h --- proto.h 27 Mar 2004 09:44:34 -0000 1.185 +++ proto.h 10 Apr 2004 23:48:36 -0000 @@ -222,7 +222,7 @@ int do_rename(char *fname1, char *fname2); void trim_trailing_slashes(char *name); int do_mkdir(char *fname, mode_t mode); -int do_mkstemp(char *template, mode_t perms); +int do_mkstemp(char *template); int do_stat(const char *fname, STRUCT_STAT *st); int do_lstat(const char *fname, STRUCT_STAT *st); int do_fstat(int fd, STRUCT_STAT...
2005 Mar 21
4
Patch: Offline transfer mode
...if (phase == 0) { + write_batch_monitor_out = old_monitor; phase++; csum_length = SUM_LENGTH; write_int(f_out, -1); @@ -173,7 +187,7 @@ if (dry_run) { if (!am_server && verbose) /* log the transfer */ rprintf(FINFO, "%s\n", safe_fname(fname2)); - write_int(f_out, i); + write_int(f_alt, i); continue; } @@ -224,8 +238,8 @@ safe_fname(fname), (double)st.st_size); } - write_int(f_out, i); - write_sum_head(f_out, s); + write_int(f_alt, i); + write_sum_head(f_alt, s); if (verbose > 2) { rprintf(FINFO, &...