GNOME Bugzilla – Bug 317766
cannot create files with gnomevfs
Last modified: 2005-10-03 19:43:35 UTC
Version details: 1.12.3-3ubuntu1 take a recent criawips and try to save a presentation. the GnomeVFS-error which comes from broken API usage is "File not found" (which is normal when saving files to a new file).
Created attachment 52945 [details] [review] patch please apply quickly, this breaks creating new files with libgsf since quite some time
the thing happens like this: 1. perms gets set to -1 initially 2. gnome_vfs_uri_exists() returns false, so perms will never be set to something different 3. when the check for perms == -1 comes it enters the first block 4. it tries to open and not to create a file
Created attachment 52994 [details] [review] path with fixed permissions this one sets correct permissions (0644) instead of still using -1
2005-10-03 Sven Herzberg <herzi@gnome-de.org> Got okay from Morten for this: * gsf-gnome/gsf-output-gnomevfs.c: create the file if necessary; fixes bug 317766