80d4d17b91755d5c5007231fa34b2479a2eed6c3
[deb_shairplay.git] / debian / patches / read_airportkey_from_etc.patch
1 --- shairplay-0.9.0.orig/src/shairplay.c
2 +++ shairplay-0.9.0/src/shairplay.c
3 @@ -313,8 +313,11 @@ main(int argc, char *argv[])
4
5 raop = raop_init_from_keyfile(10, &raop_cbs, "airport.key", NULL);
6 if (raop == NULL) {
7 - fprintf(stderr, "Could not initialize the RAOP service\n");
8 - return -1;
9 + raop = raop_init_from_keyfile(10, &raop_cbs, "/etc/shairplay/airport.key", NULL);
10 + if (raop == NULL) {
11 + fprintf(stderr, "Could not initialize the RAOP service\n");
12 + return -1;
13 + }
14 }
15
16 if (strlen(options.password)) {