diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2024-01-16 21:43:04 +0100 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2024-01-16 21:43:04 +0100 |
commit | 7b3b8f2822bf251b3e84e0926680a02df9805df5 (patch) | |
tree | a92ba1ec8133a879ab2e8474bb76e8b84d12fee2 /sysutils/vobcopy/files/patch-vobcopy.c | |
parent | devel/jenkins: Update to 2.441 (diff) |
sysutils/vobcopy: Update to 1.2.1
New MASTER_SITES
Fix WWW
Fix locale
Fix empty dvd_path
Fix FreeBSD macros
Fix getmntinfo
Add german manpage
Diffstat (limited to 'sysutils/vobcopy/files/patch-vobcopy.c')
-rw-r--r-- | sysutils/vobcopy/files/patch-vobcopy.c | 62 |
1 files changed, 58 insertions, 4 deletions
diff --git a/sysutils/vobcopy/files/patch-vobcopy.c b/sysutils/vobcopy/files/patch-vobcopy.c index 9ea3d00e2229..d1b89451b22a 100644 --- a/sysutils/vobcopy/files/patch-vobcopy.c +++ b/sysutils/vobcopy/files/patch-vobcopy.c @@ -1,11 +1,65 @@ ---- vobcopy.c.orig Sun Jun 24 08:26:07 2007 -+++ vobcopy.c Wed Oct 10 20:56:58 2007 -@@ -149,6 +149,8 @@ +--- vobcopy.c.orig 2022-05-03 19:55:34 UTC ++++ vobcopy.c +@@ -25,7 +25,7 @@ + * rosenauer@users.sf.net - helped me a lot! + * Billy Biggs <vektor@dumbterm.net> - took some of his play_title.c code + * and implemeted it here +- * Håkan Hjort <d95hjort@dtek.chalmers.se> and Billy Biggs - libdvdread ++ * HÃ¥kan Hjort <d95hjort@dtek.chalmers.se> and Billy Biggs - libdvdread + * Stephen Birch <sgbirch@imsmail.org> - debian packaging + */ + +@@ -160,7 +160,7 @@ and potentially fatal." - Thanks Leigh!*/ + #if defined( __gettext__ ) + setlocale(LC_ALL, ""); + textdomain("vobcopy"); +- bindtextdomain("vobcopy", "/usr/share/locale"); ++ bindtextdomain("vobcopy", "/usr/local/share/locale"); #endif + /* initialize string */ +@@ -1205,7 +1205,7 @@ next: /*for the goto - ugly, I know... */ + fprintf( stderr, _("\n")); + if( !stdout_flag ) + { +- if( fdatasync( streamout ) < 0 ) ++ if( fsync( streamout ) < 0 ) + { + fprintf( stderr, _("\n[Error] error writing to %s \n"), output_file ); + fprintf( stderr, _("[Error] error: %s\n"), strerror( errno ) ); +@@ -1241,7 +1241,7 @@ next: /*for the goto - ugly, I know... */ + fprintf( stderr, _("\n")); + if( !stdout_flag ) + { +- if( fdatasync( streamout ) < 0 ) ++ if( fsync( streamout ) < 0 ) + { + fprintf( stderr, _("\n[Error] error writing to %s \n"), output_file ); + fprintf( stderr, _("[Error] error: %s\n"), strerror( errno ) ); +@@ -1389,7 +1389,7 @@ next: /*for the goto - ugly, I know... */ + fprintf( stderr, _("\n") ); + if( !stdout_flag ) + { +- if( fdatasync( streamout ) < 0 ) ++ if( fsync( streamout ) < 0 ) + { + fprintf( stderr, _("\n[Error] error writing to %s \n"), output_file ); + fprintf( stderr, _("[Error] error: %s\n"), strerror( errno ) ); +@@ -1421,6 +1421,8 @@ next: /*for the goto - ugly, I know... */ + + + /* initialize string */ + dvd_path[0] = '\0'; /* - * the getopt part (getting the options from command line) + * Open now up the actual files for reading +@@ -1847,7 +1849,7 @@ The man replies, "I was talking to the sheep." + } + if( !stdout_flag ) + { +- if( fdatasync( streamout ) < 0 ) ++ if( fsync( streamout ) < 0 ) + { + fprintf( stderr, _("\n[Error] error writing to %s \n"), name ); + fprintf( stderr, _("[Error] error: %s\n"), strerror( errno ) ); |