Displaying 20 results from an estimated 37 matches for "relative_paths".
2007 Sep 21
3
TextMate Bundle and exception when switching to alternate file.
Hey,
sorry if this is something better suited to another list.
I''ve encountered a strange problem with the RSpec.tmbundle in trunk -
namely that it was raising an exception when pressing
ctrl-shift-downarrow (switch between spec and source - "Alternate
File").
I tracked down the issue to be handling of the file_type in
switch_command.rb#content_for() - the code expected the
2002 Feb 24
2
Write-only option
...lp_list, list)
FN_LOCAL_BOOL(lp_use_chroot, use_chroot)
FN_LOCAL_BOOL(lp_transfer_logging, transfer_logging)
diff -urN rsync-2.5.2.orig/main.c rsync-2.5.2/main.c
--- rsync-2.5.2.orig/main.c Fri Jan 25 11:07:41 2002
+++ rsync-2.5.2/main.c Sat Feb 23 13:49:38 2002
@@ -306,10 +306,19 @@
extern int relative_paths;
extern int recurse;
extern int remote_version;
+ extern int am_daemon;
+ extern int module_id;
+ extern int am_sender;
if (verbose > 2)
rprintf(FINFO,"server_sender starting pid=%d\n",(int)getpid());
+ if (am_daemon && lp_write_only(module_id) && am_sender)...
2005 Dec 04
2
Filecolumn: url_for_file_column problem
Calling url_for_file_colum results in a TypeError: can''t convert nil to string.
The error is in line 148 of filecolumn.rb:
def relative_path(subdir=nil)
File.join(relative_path_prefix,subdir, @filename)
end
If I substitute '''' for subdir in the File.join command, then it seems to work fine. Since this is a plugin, I''m wondering why I need
2006 Oct 26
5
[ win32utils-Patches-6335 ] pure ruby implementation
Patches item #6335, was opened at 2006-10-26 16:51
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=413&aid=6335&group_id=85
Category: win32-shortcut
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Jano Svitok (janek)
Assigned to: Nobody (None)
Summary: pure ruby implementation
Initial Comment:
This is (not finished) pure-ruby
2016 Apr 18
2
Redundant Twine->StringRef->Twine conversions in llvm::sys::fs::make_absolute?
llvm::sys::fs::make_absolute converts its first parameter (const Twine
¤t_directory) to StringRef p(path.data(), path.size()), and then
passes that StringRef to several functions (path::has_root_directory,
path::has_root_name, and path::append) that accept Twines as parameters.
Since llvm::StringRef can implicitly convert to an llvm::Twine, p converts
to a bunch of Twine temporaries.
In
2008 Mar 19
0
[PATCH] Unsnarl missing_below/dry_run logic.
...need_fuzzy_dirlist = 0;
struct file_struct *fuzzy_file = NULL;
@@ -1241,7 +1252,6 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
char *fnamecmp, *partialptr, *backupptr = NULL;
char fnamecmpbuf[MAXPATHLEN];
uchar fnamecmp_type;
- int implied_dirs_are_missing = relative_paths && !implied_dirs && protocol_version < 30;
int del_opts = delete_mode || force_delete ? DEL_RECURSE : 0;
int is_dir = !S_ISDIR(file->mode) ? 0
: inc_recurse && ndx != cur_flist->ndx_start - 1 ? -1
@@ -1258,22 +1268,16 @@ static void recv_generator(char *fn...
2003 Aug 06
1
Should --progress implicitly assert -v?
...case OPT_PROGRESS:
+ do_progress = 1;
+ break;
+
case OPT_WRITE_BATCH:
/* popt stores the filename in batch_prefix for
us */
write_batch = 1;
@@ -629,6 +633,10 @@
if (relative_paths < 0)
relative_paths = files_from? 1 : 0;
+
+ if (do_progress & (!verbose)) {
+ verbose++;
+ }
if (!backup_suffix)
backup_suffix = backup_dir? "" : BACKUP_SUFFIX;
2004 Nov 13
1
Archive Delete Mode
...ONE, &recurse, 0, 0, 0 },
@@ -699,7 +702,7 @@
return 0;
}
- if (archive_mode) {
+ if (archive_mode || archive_delete_mode) {
if (!files_from)
recurse = 1;
#if SUPPORT_LINKS
@@ -712,6 +715,9 @@
preserve_devices = 1;
}
+ if (archive_delete_mode)
+ delete_mode = 1;
+
if (relative_paths < 0)
relative_paths = files_from? 1 : 0;
2005 Apr 27
2
--delete option does not always work
I know that there are a million messages from newbies who cannot get
--delete to work. This message is special. :)
--delete works fine for me EXCEPT when the following two conditions are
present:
1) I am using the --relative option, and
2) the deleted file is in a subdirectory of the SRC directory.
Here is a demonstration of how to recreate this bug:
lenny@mythtv:/tmp$ rsync --version
rsync
2004 Feb 12
1
[PATCH] write only
...--
--- rsync-2.6.0/main.c.orig Thu Feb 12 11:47:38 2004
+++ rsync-2.6.0/main.c Thu Feb 12 11:48:16 2004
@@ -347,12 +347,19 @@ static void do_server_sender(int f_in, i
int i;
struct file_list *flist;
char *dir = argv[0];
+ extern int module_id;
extern int relative_paths;
extern int recurse;
if (verbose > 2)
rprintf(FINFO,"server_sender starting pid=%d\n",(int)getpid());
+ if (am_daemon && lp_write_only(module_id) && !am_sender) {
+ rprintf(FERROR,"ERROR: module is write onl...
2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post.
I am trying to configure file_column plugin so that it stores the images
in a directory completely outside of RAILS_ROOT.
I have no problems in storing the files by setting :root_path option.
But I can''t get to display these images using ''url_for_file_column''.
What I get instead of the image is
2003 Mar 20
2
--link-dest uid/gid checking bug?
...ay, so I might very well be missing something.
Thanks,
Chris.
diff -u generator.c.orig generator.c
====================================
--- generator.c.orig 2003-03-19 15:07:29.592476000 -0500
+++ generator.c 2003-03-19 16:12:24.994685000 -0500
@@ -27,6 +27,8 @@
extern int dry_run;
extern int relative_paths;
extern int preserve_links;
+extern int preserve_uid;
+extern int preserve_gid;
extern int am_root;
extern int preserve_devices;
extern int preserve_hard_links;
@@ -55,7 +57,8 @@
if((st->st_mode & ~_S_IFMT) != (file->mode & ~_S_IFMT)) {
return 0;
}
- if (st->st_uid...
2004 Apr 27
1
[PATCH] Inplace option for rsync
...p, file->mode & INITACCESSPERMS);
-
- /* in most cases parent directories will already exist
- * because their information should have been previously
- * transferred, but that may not be the case with -R */
- if (fd2 == -1 && relative_paths && errno == ENOENT &&
- create_directory_path(fnametmp, orig_umask) == 0) {
- strlcpy(fnametmp, template, sizeof fnametmp);
+ strlcpy(template, fnametmp, sizeof template);
+
+ /* we initially set the perms without the
+...
2006 Jun 23
0
Overriding a file_column attribute in model
I have a user model subclassed into Employees and Managers using STI. I
am using FileColumn to manage images, in this case logos. If an Employee
doesn''t have a logo of its own, I want my app to use the Manager''s logo
in views.
I did the following in models/users.rb:
-------
class User < ActiveRecord::Base
file_column :logo
end
class Employee < User
belongs_to
2005 Sep 27
1
--delete and --dirs
rsync-2.6.6 manpage says:
--delete
[...]
This option has no effect unless directory recursion is enabled.
True. In fact, I noted that --delete doesn't delete anything if --dirs
is used rather than --recursive.
Is there any reason for --delete not to delete when used with --dirs?
Is there a way to get rsync to actually delete files on the receiving
end when using
2004 Dec 22
2
possible bug with --files-from and --no-relative options
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 925 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20041222/36f828dc/attachment.gif
2009 Oct 15
1
PATCH: --write-devices to allow synchronising to a block device
...tions().\n");
exit_cleanup(RERR_MALLOC);
diff -ru rsync-3.0.6/receiver.c rsync-3.0.6-writedev/receiver.c
--- rsync-3.0.6/receiver.c 2009-04-13 07:48:59.000000000 +1200
+++ rsync-3.0.6-writedev/receiver.c 2009-10-15 20:54:22.000000000 +1300
@@ -38,6 +38,7 @@
extern int relative_paths;
extern int preserve_hard_links;
extern int preserve_perms;
+extern int write_devices;
extern int preserve_xattrs;
extern int basis_dir_cnt;
extern int make_backups;
@@ -165,6 +166,7 @@
static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
const char...
2006 Sep 18
1
code 23 error.
...rite only\n");
exit_cleanup(RERR_SYNTAX);
return;
}
if (am_daemon && lp_read_only(module_id) && remove_sent_files) {
rprintf(FERROR,
"ERROR: --remove-sent-files cannot be used with a read-only module\n");
exit_cleanup(RERR_SYNTAX);
return;
}
if (!relative_paths && !push_dir(dir)) {
rsyserr(FERROR, errno, "push_dir#3 %s failed",
full_fname(dir));
exit_cleanup(RERR_FILESELECT);
}
argc--;
argv++;
if (argc == 0 && (recurse || list_only)) {
argc = 1;
argv--;
argv[0] = ".";
}
flist = send_file_list(f_ou...
2003 Jan 18
1
possible typo/bug in receiver.c
...if (fd1 != -1) close(fd1);
continue;
}
/* in most cases parent directories will already exist
because their information should have been previously
transferred, but that may not be the case with -R */
if (fd2 == -1 && relative_paths && errno == ENOENT &&
create_directory_path(fnametmp, orig_umask) == 0) {
strlcpy(fnametmp, template, sizeof(fnametmp));
fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS);
}
if (fd2 == -1) {
rp...
2006 Apr 26
2
--link-dest and file/dir transfer to remote rsync daemon
Hi NG,
I want to do incremental backups to a remote server running rsyncd
(because daemonless transfer via ssh often hangs!). In contrast to
transfer via ssh (without remote rsyncd) this doesn't seem possible, or
do I miss something?
Imagine I want to incrementally backup `mydir' to the backup space
`backup' on e remote server `alpha' running an rsync daemon. rsyncd on