Imported Debian patch 0.9.0-6~trusty
[deb_shairplay.git] / debian / patches / read_airportkey_from_etc.patch
diff --git a/debian/patches/read_airportkey_from_etc.patch b/debian/patches/read_airportkey_from_etc.patch
new file mode 100644 (file)
index 0000000..80d4d17
--- /dev/null
@@ -0,0 +1,16 @@
+--- shairplay-0.9.0.orig/src/shairplay.c
++++ shairplay-0.9.0/src/shairplay.c
+@@ -313,8 +313,11 @@ main(int argc, char *argv[])
+       raop = raop_init_from_keyfile(10, &raop_cbs, "airport.key", NULL);
+       if (raop == NULL) {
+-              fprintf(stderr, "Could not initialize the RAOP service\n");
+-              return -1;
++              raop = raop_init_from_keyfile(10, &raop_cbs, "/etc/shairplay/airport.key", NULL);
++              if (raop == NULL) {
++                      fprintf(stderr, "Could not initialize the RAOP service\n");
++                      return -1;
++              }
+       }
+       if (strlen(options.password)) {